From 147cd053e31d3a6256fbae00a0ca96c1d2d7d2ae Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 25 Jul 2017 14:43:37 +0200 Subject: [PATCH] make complete! use fastm! --- src/GroupRings.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 6de7c14..e26667d 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -501,9 +501,9 @@ function complete!(RG::GroupRing) if !isdefined(RG, :basis) RG.basis = [elements(RG.group)...] end - if !isdefined(RG, :basis_dict) - RG.basis_dict = reverse_dict(RG.basis) - end + + fastm!(RG, fill=true) + 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]]