mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2025-01-01 03:40:29 +01:00
format
This commit is contained in:
parent
890bde8b82
commit
8685c25600
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user