Skip to content
Quantoros

When eigh returns w and V, how do you verify its eigenpair convention?

MathematicsLevel: FoundationRank and spectral numerics

When eigh returns w and V, how do you verify its eigenpair convention?

Hints
  • Read column i.
  • Verify the defining equation.

Answer

Check A@V[:,i]≈w[i]*V[:,i]. Eigenvectors are columns, not rows; swapping that convention breaks downstream projections.

Source and licence: NumPy — numerical linear algebra · BSD-3-Clause · answer: Quantoros editorial

Related questions