Closed
Description
I guess the following is a (quite scary) bug:
using LinearAlgebra, StaticArrays, Test
S = SMatrix{2,2}((70., 0., 0., 1/70))
E = eigen(S)
Λs = eigvals(E)
V = eigvecs(E)
@test S * V ≈ V * Diagonal(eigvals(E))
M = Matrix(S)
F = eigen(M)
Λm = eigvals(F)
@test Λs ≈ Λm
U = eigvecs(F)
@test M * U ≈ U * Diagonal(eigvals(F))
I thought one should be able to rely on that eigvecs(E)[:,1]
is the eigenvector corresponding to eigvals(E)[1]
, like in the normal matrix case? Or how would one do that otherwise?
Metadata
Metadata
Assignees
Labels
No labels