create_pm convenience

This commit is contained in:
kalmar 2017-05-17 17:44:51 +02:00
parent 07cc7eff16
commit 408c5a34e3
1 changed files with 2 additions and 0 deletions

View File

@ -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))