You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying problem here seems to be that sum(A; dims=Val(1)) is allocating:
julia> A =@SArrayrand(4,4);
julia>@btimesum($A; dims=Val(1))
28.764 ns (2 allocations:192 bytes)
1×4 SArray{Tuple{1,4},Float64,2,4} with indices SOneTo(1)×SOneTo(4):1.096271.930561.625162.25825
It seems this line from the exp() method
StaticArrays.jl/src/expm.jl
Line 71 in 786b6f0
is causing a couple of allocations, what I imagine is not something desirable. Just using opnorm(A,1) prevents it.
I am not sure how to go about making a PR, should I go for a non-allocating version of this, or just move back to opnorm?
The text was updated successfully, but these errors were encountered: