Description
Decomposes the matrix M such that M = V D V^-1, where the columns of V are the eigen vectors of M and D is a diagonal matrix where the diagonal elements are the eigen values of M. This overload assumes that only real values will be returned, and will return an error in the event that complex values are encountered.
Timing Precision Mode
This page describes functionality in nanosecond timing precision mode.
Click here to see the documentation for this object in millisecond timing precision mode.
Method Signature
Arguments
D_real
|
|
Description:
|
The matrix which holds the real components of the eigen values on the diagonal.
|
V_real
|
|
Description:
|
The matrix which holds the real components of the eigen vectors as columns.
|
Syntax
myMatrix1.EigenDecomposition(myMatrix2, myMatrix3);
|
This example shows how to calculate the Eigen decomposition of a Matrix m such that m = V*D*V^-1.
Matrix m;
Matrix D;///Diagonal matrix of Eigen values
Matrix V;///Eigen vectors
m = [ 3.391513416, 0.816321806, 4.412425140;
-0.316222796, -2.905531416, -1.119166334;
-2.165533336, -1.036052255, -5.199638779 ];
m.EigenDecomposition(D, V);
Report D, V;
|
Output report:
D = -4.463211149 0.000000000 0.000000000
0.000000000 -2.329916358 0.000000000
0.000000000 0.000000000 2.079470728
V = -0.472655406 0.267585143 0.958348706
0.448902817 0.824005284 0.003322235
0.758342355 -0.499413138 -0.285581372
|
|
See also
Matrix Object
Matrix.EigenDecomposition
Matrix, Array, and Variable Math Guide
|