This commit is contained in:
kalmar 2017-05-17 11:45:56 +02:00
parent 890bde8b82
commit 8685c25600
1 changed files with 3 additions and 3 deletions

View File

@ -282,15 +282,15 @@ function reverse_dict(a::AbstractVector)
end
function create_pm{T<:GroupElem}(basis::Vector{T}, basis_dict::Dict{T, Int},
limit; twisted=false)
limit=length(basis); twisted=false)
product_matrix = zeros(Int, (limit,limit))
for i in 1:limit
x = basis([i])
x = basis[i]
if twisted
x = inv(x)
end
for j in 1:limit
w = x*basis[j]
w = x*(basis[j])
product_matrix[i,j] = basis_dict[w]
end
end