Class EigenDecompositor
java.lang.Object
org.la4j.decomposition.AbstractDecompositor
org.la4j.decomposition.EigenDecompositor
- All Implemented Interfaces:
Serializable, MatrixDecompositor
This class represents Eigen decomposition of matrices. More details
- See Also:
-
Field Summary
Fields inherited from class AbstractDecompositor
matrix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicableTo(Matrix matrix) Checks whether this decompositor is applicable to given matrix or not.private double[]cdiv(double xr, double xi, double yr, double yi) Matrix[]Returns the result of Eigen (EVD) decomposition of given matrixprivate Matrix[]decomposeNonSymmetricMatrix(Matrix matrix) Returns the result of Eigen decomposition for non-symmetric matrixprivate Matrix[]decomposeSymmetricMatrix(Matrix matrix) Returns the result of Eigen decomposition for symmetric matrixprivate intprivate intprivate Vectorprivate doublegenerateRi(Matrix matrix, int i) private voidprivate voidprivate voidregenerateU(Matrix u, Matrix matrix, int k, int l, int kk, int ll) Methods inherited from class AbstractDecompositor
fail, selfMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MatrixDecompositor
self
-
Constructor Details
-
EigenDecompositor
-
-
Method Details
-
decompose
Returns the result of Eigen (EVD) decomposition of given matrixSee http://mathworld.wolfram.com/EigenDecomposition.html for more details.
- Specified by:
decomposein interfaceMatrixDecompositor- Returns:
- { V, D }
-
applicableTo
Description copied from interface:MatrixDecompositorChecks whether this decompositor is applicable to given matrix or not.- Specified by:
applicableToin interfaceMatrixDecompositor- Parameters:
matrix-- Returns:
-
decomposeSymmetricMatrix
Returns the result of Eigen decomposition for symmetric matrixSee http://mathworld.wolfram.com/EigenDecomposition.html for more details.
- Parameters:
matrix-- Returns:
- { V, D }
-
findMax
-
findMax
-
generateR
-
generateRi
-
regenerateU
-
decomposeNonSymmetricMatrix
Returns the result of Eigen decomposition for non-symmetric matrixSee http://mathworld.wolfram.com/EigenDecomposition.html for more details.
- Parameters:
matrix-- Returns:
- { P, D }
-
orthes
-
hqr2
-
cdiv
private double[] cdiv(double xr, double xi, double yr, double yi)
-