1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-09-08 15:31:44 +02:00

add threading to create_pm

This commit is contained in:
kalmar 2017-08-04 15:55:46 +02:00
parent afaff8cc41
commit 50629a762c

View File

@ -509,7 +509,7 @@ end
function create_pm{T<:GroupElem}(basis::Vector{T}, basis_dict::Dict{T, Int}, function create_pm{T<:GroupElem}(basis::Vector{T}, basis_dict::Dict{T, Int},
limit::Int=length(basis); twisted::Bool=false) limit::Int=length(basis); twisted::Bool=false)
product_matrix = zeros(Int, (limit,limit)) product_matrix = zeros(Int, (limit,limit))
for i in 1:limit Threads.@threads for i in 1:limit
x = basis[i] x = basis[i]
if twisted if twisted
x = inv(x) x = inv(x)