further speedups for WreathProduct on Mats

This commit is contained in:
kalmarek 2019-06-28 01:12:32 +02:00
parent 70c72d28d9
commit 1345257732
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 4 additions and 1 deletions

View File

@ -258,7 +258,10 @@ function (g::WreathProductElem{N})(A::MatElem) where N
result = similar(A)
@inbounds for i = 1:size(A,1)
for j = 1:size(A,2)
result[i, j] = A[g.p[i], g.p[j]]*(flips[i]*flips[j])
x = A[g.p[i], g.p[j]]
result[i, j] = x*(flips[i]*flips[j])
# result[i, j] = AbstractAlgebra.mul!(x, x, flips[i]*flips[j])
# this mul! needs to be separately defined, but is 2x faster
end
end
return result