Package org.la4j.decomposition
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 org.la4j.decomposition.AbstractDecompositor
matrix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
applicableTo
(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 int
private int
private Vector
private double
generateRi
(Matrix matrix, int i) private void
private void
private void
regenerateU
(Matrix u, Matrix matrix, int k, int l, int kk, int ll) Methods inherited from class org.la4j.decomposition.AbstractDecompositor
fail, self
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.la4j.decomposition.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:
decompose
in interfaceMatrixDecompositor
- Returns:
- { V, D }
-
applicableTo
Description copied from interface:MatrixDecompositor
Checks whether this decompositor is applicable to given matrix or not.- Specified by:
applicableTo
in 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)
-