mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-25 02:15:29 +01:00
further speedups for WreathProduct on Mats
This commit is contained in:
parent
70c72d28d9
commit
1345257732
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user