From 53c1872d0d47d39be690addf54734577f8ca8d61 Mon Sep 17 00:00:00 2001 From: kalmar Date: Fri, 4 Aug 2017 21:35:29 +0200 Subject: [PATCH] avoid temporary variable --- src/GroupRings.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index a9c4b9f..e7a01ef 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -520,8 +520,7 @@ function create_pm{T<:GroupElem}(basis::Vector{T}, basis_dict::Dict{T, Int}, x = inv(x) end for j in 1:limit - w = x*(basis[j]) - product_matrix[i,j] = basis_dict[w] + product_matrix[i,j] = basis_dict[x*(basis[j])] end end return product_matrix