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
using LinearAlgebra, StaticArrays, BenchmarkTools
f1(x, A) =dot(x, A * x)
f2(x, A) =dot(x, A, x)
let
x =randn(3)
A =randn(3, 3)
A = A * A'+1e-6* I
sx =SVector{3}(x...)
sA =SMatrix{3,3}(A...)
display(@benchmark(f1($sx, $sA)))
display(@benchmark(f2($sx, $sA)))
end
Somewhat counter intuitive:
The text was updated successfully, but these errors were encountered: