Loading...
Implement a function to verify if a given vector is an eigenvector of a matrix with a specified eigenvalue. This concept is crucial in linear algebra as eigenvectors represent directions in which a matrix transformation scales a vector by a factor, known as the eigenvalue. The equation Av=λv represents this relationship, where A is the matrix, v is the eigenvector, and λ is the eigenvalue.
To verify if v is an eigenvector of A with eigenvalue λ, we need to check if the matrix A transforms v into a scaled version of itself. Here are the steps:
This technique is widely used in computer vision for image compression and dimensionality reduction.
is_eigenvector([[2, 0], [0, 3]], [1, 0], 2)
True
A @ [1, 0] = [2, 0] = 2 × [1, 0]