mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +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)...]
|
RG.basis = [elements(RG.group)...]
|
||||||
end
|
end
|
||||||
|
|
||||||
fastm!(RG, fill=true)
|
fastm!(RG, fill=false)
|
||||||
|
|
||||||
|
warning = false
|
||||||
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]]
|
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
|
end
|
||||||
|
warning && warn("Some products were not supported on basis")
|
||||||
return RG
|
return RG
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user