Eigenvalues and Vectors VI

Owning Palette: Linear Algebra VIs

Requires: Full Development System

Finds the eigenvalues and right eigenvectors of the square Input Matrix. Wire data to the Input Matrix input to determine the polymorphic instance to use or manually select the instance.

Details  Examples

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Real Eigenvalues and Vectors

Input Matrix is an n-by-n square, real matrix, where n is the number of rows and columns of Input Matrix.
matrix type is the type of Input Matrix. A symmetric matrix needs less computation than an unsymmetrical matrix. A real, symmetric matrix always has real eigenvectors and eigenvalues.

0General (default)
1Symmetric
output option determines whether the VI computes Eigenvectors.

0eigenvalues
1eigenvalues and vectors (default)
Eigenvalues is a complex vector of n elements, which contains all of the computed eigenvalues of the Input Matrix. The Input Matrix could have complex eigenvalues if it is not symmetric.
Eigenvectors is an n-by-n complex matrix containing all of the computed Eigenvectors of the Input Matrix. The ith column of Eigenvectors is the eigenvector corresponding to the ith component of the vector, Eigenvalues. Each eigenvector is normalized so that its Euclidean norm equals 1. The Input Matrix could have complex Eigenvectors if it is not symmetric.

If output option is set to eigenvalues, the VI returns Eigenvectors as an empty array.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Complex Eigenvalues and Vectors

Input Matrix must be an n-by-n square, complex matrix, where n is the number of rows and columns of Input Matrix.
matrix type is the type of Input Matrix. A symmetric matrix needs less computation than an unsymmetrical matrix. A Hermitian matrix always has real eigenvalues.

0General (default)
1Hermitian
output option determines whether the VI computes Eigenvectors.

0eigenvalues
1eigenvalues and vectors (default)
Eigenvalues is a complex vector of n elements, which contains all of the computed eigenvalues of the Input Matrix. The Input Matrix could have complex eigenvalues if it is not Hermitian.
Eigenvectors is an n-by-n complex matrix containing all of the computed Eigenvectors of the Input Matrix. The ith column of Eigenvectors is the eigenvector corresponding to the ith component of the vector, Eigenvalues. Each eigenvector is normalized so that its Euclidean norm equals 1.

If output option is set to eigenvalues, the VI returns Eigenvectors as an empty array.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Eigenvalues and Vectors Details

Real

The eigenvalue problem is to determine the nontrivial solutions to the equation:

AX = X

where A is an n-by-n Input Matrix, X is a vector with n elements, and is a scalar. The n values of that satisfy the equation are the Eigenvalues of A and the corresponding values of X are the right Eigenvectors of A. A real, symmetric matrix always has real eigenvalues and eigenvectors. This VI returns the real eigenvalues in ascending order if the Input Matrix is a real symmetric matrix.

Complex

The eigenvalue problem is to determine the nontrivial solutions for the equation:

AX = X

where A represents an n-by-n Input Matrix, X represents a vector with n elements, and is a scalar. The n values of that satisfy the equation are the Eigenvalues of A and the corresponding values of X are the right Eigenvectors of A. A Hermitian matrix always has real eigenvalues. This VI returns the real eigenvalues in ascending order if the Input Matrix is a Hermitian matrix.

Examples

Refer to the following VIs for examples of using the Eigenvalues and Vectors VI: