1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-09-08 15:31:44 +02:00

when completing RG.pm compute only missing products

This commit is contained in:
kalmar 2017-07-19 22:57:59 +02:00
parent 9470d31e95
commit d80cee5df5

View File

@ -487,15 +487,11 @@ function complete!(RG::GroupRing)
if !isdefined(RG, :basis_dict) if !isdefined(RG, :basis_dict)
RG.basis_dict = reverse_dict(RG.basis) RG.basis_dict = reverse_dict(RG.basis)
end end
if !isdefined(A, :pm) for linidx in find(RG.pm .== 0)
A.pm = try i,j = ind2sub(size(RG.pm), linidx)
create_pm(A.basis, A.basis_dict) RG.pm[i,j] = RG.basis_dict[RG.basis[i]*RG.basis[j]]
catch err
isa(err, KeyError) && throw("Product is not supported on basis")
throw(err)
end end
end return RG
return A
end end
end # of module GroupRings end # of module GroupRings