Complex Eigenvalues and Vectors VI
- Updated2025-07-30
- 3 minute(s) read
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.

Inputs/Outputs
Input Matrix
—
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
—
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.
output option
—
output option determines whether the VI computes Eigenvectors.
Eigenvalues
—
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
—
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
—
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. |
Real
The eigenvalue problem is to determine the nontrivial solutions to the equation:
AX = λXwhere 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 = λXwhere 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 example files included with LabVIEW.
- labview\examples\Mathematics\Linear Algebra\Linear Algebra Calculator.vi
- labview\examples\Mathematics\Differential Equations - ODE\Linear Differential Equation Solving.vi
Input Matrix
—
matrix type
—
Eigenvalues
—
Eigenvectors
—
error
—