mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
relax MatSpaces to NCRings
This commit is contained in:
parent
9ae0a3caf3
commit
e773ed99b5
@ -112,7 +112,7 @@ end
|
|||||||
|
|
||||||
zero(RG::GroupRing, T::Type=Int) = RG(T)
|
zero(RG::GroupRing, T::Type=Int) = RG(T)
|
||||||
one(RG::GroupRing, T::Type=Int) = RG(RG.group(), T)
|
one(RG::GroupRing, T::Type=Int) = RG(RG.group(), T)
|
||||||
one(RG::GroupRing{<:MatSpace}, T::Type=Int) = RG(one(RG.group), T)
|
one(RG::GroupRing{<:AbstractAlgebra.NCRing}, T::Type=Int) = RG(one(RG.group), T)
|
||||||
|
|
||||||
function (RG::GroupRing)(T::Type=Int)
|
function (RG::GroupRing)(T::Type=Int)
|
||||||
isdefined(RG, :basis) || throw("Can not coerce without basis of GroupRing")
|
isdefined(RG, :basis) || throw("Can not coerce without basis of GroupRing")
|
||||||
@ -125,7 +125,7 @@ function (RG::GroupRing)(i::Int, T::Type=Int)
|
|||||||
return elt
|
return elt
|
||||||
end
|
end
|
||||||
|
|
||||||
function (RG::GroupRing{<:MatSpace})(i::Int, T::Type=Int)
|
function (RG::GroupRing{<:AbstractAlgebra.NCRing})(i::Int, T::Type=Int)
|
||||||
elt = RG(T)
|
elt = RG(T)
|
||||||
elt[one(RG.group)] = i
|
elt[one(RG.group)] = i
|
||||||
return elt
|
return elt
|
||||||
|
Loading…
Reference in New Issue
Block a user