From 408c5a34e34cea4ff9391465a1d41f1ba14b11f0 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 17 May 2017 17:44:51 +0200 Subject: [PATCH] create_pm convenience --- src/GroupRings.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 6f38294..1fbacfc 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -366,6 +366,8 @@ function create_pm{T<:GroupElem}(basis::Vector{T}, basis_dict::Dict{T, Int}, return product_matrix end +create_pm{T<:GroupElem}(b::Vector{T}) = create_pm(b, reverse_dict(b)) + function complete(A::GroupRing) if !isdefined(A, :basis) A.basis = collect(elements(A.group))