| Table of Contents / Matrix / Eigenvalues | Operators |
eigenvalues_general_matrix — Compute the eigenvalues and optionally the eigenvectors of a general matrix.
eigenvalues_general_matrix( : : MatrixID, ComputeEigenvectors : EigenvaluesRealID, EigenvaluesImagID, EigenvectorsRealID, EigenvectorsImagID)
The operator eigenvalues_general_matrix computes all eigenvalues and, optionally, the left or right eigenvectors of a square, general Matrix. The matrix is defined by the matrix handle MatrixID. The computed eigenvectors have the norm 1.
The operator generates the new matrices EigenvaluesReal and EigenvaluesImag with the real and the imaginary parts of the computed eigenvalues. Each matrix has one column and n rows, where n is the number of rows of the input Matrix. In contrast to the operator eigenvalues_symmetric_matrix, the order of the eigenvalues is not defined. The operator returns the matrix handles EigenvaluesRealID and EigenvaluesImagID. If desired, the real and imaginary parts of the computed eigenvectors are stored in the new matrices EigenvectorsReal and EigenvectorsImag. For this, the operator returns valid matrix handles EigenvectorsRealID and EigenvectorsImagID. Access to the elements of the matrix is possible e.g. with the operator get_full_matrix.
The computation type of eigenvectors can be selected via the parameter ComputeEigenvectors. If ComputeEigenvectors = 'none', no eigenvectors are computed. If 'left' is selected, the left eigenvalues are computed. If 'right' is selected, the right eigenvalues are computed.
Example:
/ 6.0 4.0 -8.0 \
Matrix = | 5.0 7.0 3.0 | ComputeEigenvectors = 'right'
\ 4.0 -1.0 4.0 /
/ 3.3110 \ / 5.4143 \
-> EigenvaluesReal = | 3.3110 | EigenvaluesImag = | -5.4143 |
\ 10.3781 / \ 0.0 /
/ 0.6353 0.6353 0.4813 \
EigenvectorsReal = | -0.4764 0.4764 0.8605 |
\ -0.0246 -0.0246 0.1669 /
/ 0.0 0.0 0.0 \
EigenvectorsImag = | -0.2485 0.2485 0.0 |
\ -0.5542 0.5542 0.0 /
Matrix handle of the input matrix.
Computation of the eigenvectors.
Default value: 'none'
List of values: 'none', 'left', 'right'
Matrix handle with the real parts of the eigenvalues.
Matrix handle with the imaginary parts of the eigenvalues.
Matrix handle with the real parts of the eigenvectors.
Matrix handle with the imaginary parts of the eigenvectors.
If the parameters are valid, the operator eigenvalues_general_matrix returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
get_full_matrix, get_value_matrix, get_diagonal_matrix
eigenvalues_symmetric_matrix, generalized_eigenvalues_symmetric_matrix, generalized_eigenvalues_general_matrix
David Poole: “Linear Algebra: A Modern Introduction”; Thomson;
Belmont; 2006.
Gene H. Golub, Charles F. van Loan: “Matrix Computations”; The
Johns Hopkins University Press; Baltimore and London; 1996.
Foundation
| Table of Contents / Matrix / Eigenvalues | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |