1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-12-28 18:50:29 +01:00

relax MatSpaces to NCRings

This commit is contained in:
kalmarek 2019-06-30 18:59:16 +02:00
parent 9ae0a3caf3
commit e773ed99b5
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -112,7 +112,7 @@ end
zero(RG::GroupRing, T::Type=Int) = RG(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)
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
end
function (RG::GroupRing{<:MatSpace})(i::Int, T::Type=Int)
function (RG::GroupRing{<:AbstractAlgebra.NCRing})(i::Int, T::Type=Int)
elt = RG(T)
elt[one(RG.group)] = i
return elt