mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-11-14 21:25:28 +01:00
make complete! use fastm!
This commit is contained in:
parent
75627514fd
commit
147cd053e3
@ -501,9 +501,9 @@ function complete!(RG::GroupRing)
|
|||||||
if !isdefined(RG, :basis)
|
if !isdefined(RG, :basis)
|
||||||
RG.basis = [elements(RG.group)...]
|
RG.basis = [elements(RG.group)...]
|
||||||
end
|
end
|
||||||
if !isdefined(RG, :basis_dict)
|
|
||||||
RG.basis_dict = reverse_dict(RG.basis)
|
fastm!(RG, fill=true)
|
||||||
end
|
|
||||||
for linidx in find(RG.pm .== 0)
|
for linidx in find(RG.pm .== 0)
|
||||||
i,j = ind2sub(size(RG.pm), linidx)
|
i,j = ind2sub(size(RG.pm), linidx)
|
||||||
RG.pm[i,j] = RG.basis_dict[RG.basis[i]*RG.basis[j]]
|
RG.pm[i,j] = RG.basis_dict[RG.basis[i]*RG.basis[j]]
|
||||||
|
Loading…
Reference in New Issue
Block a user