mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-28 18:50:29 +01:00
allow to have 0s in completed pm
This commit is contained in:
parent
e223763b75
commit
61bed0f3d0
@ -556,12 +556,21 @@ function complete!(RG::GroupRing)
|
||||
RG.basis = [elements(RG.group)...]
|
||||
end
|
||||
|
||||
fastm!(RG, fill=true)
|
||||
fastm!(RG, fill=false)
|
||||
|
||||
warning = false
|
||||
for linidx in find(RG.pm .== 0)
|
||||
i,j = ind2sub(size(RG.pm), linidx)
|
||||
RG.pm[i,j] = RG.basis_dict[RG.basis[i]*RG.basis[j]]
|
||||
g = RG.basis[i]*RG.basis[j]
|
||||
if haskey(RG.basis_dict, g)
|
||||
RG.pm[i,j] = RG.basis_dict[g]
|
||||
else
|
||||
if !warning
|
||||
warning = true
|
||||
end
|
||||
end
|
||||
end
|
||||
warning && warn("Some products were not supported on basis")
|
||||
return RG
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user