1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-26 02:30:29 +01:00

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

View File

@ -258,7 +258,10 @@ function (g::WreathProductElem{N})(A::MatElem) where N
result = similar(A) result = similar(A)
@inbounds for i = 1:size(A,1) @inbounds for i = 1:size(A,1)
for j = 1:size(A,2) 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
end end
return result return result