Class Decomposition
java.lang.Object
org.episteme.core.mathematics.linearalgebra.Decomposition
High-level utility for matrix decompositions.
This class abstracts the provider system, automatically selecting the most efficient implementation (Native LAPACK, EJML, or Core) based on matrix characteristics and available hardware.
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> Vector<E> Solves Ax = b using BiCGSTAB.static <E> CholeskyResult<E> Computes the Cholesky decomposition of the specified matrix.static <E> Vector<E> conjugateGradient(Matrix<E> a, Vector<E> b, Vector<E> x0, E tolerance, int maxIterations) Solves Ax = b using Conjugate Gradient.static <E> EigenResult<E> Computes the eigenvalue decomposition of the specified matrix.static <E> Vector<E> Solves Ax = b using GMRES.static <E> LUResult<E> Computes the LU decomposition of the specified matrix.static <E> QRResult<E> Computes the QR decomposition of the specified matrix.static <E> Vector<E> Solves Ax = b using the most appropriate decomposition.static <E> SVDResult<E> Computes the Singular Value Decomposition (SVD) of the specified matrix.
-
Method Details
-
qr
-
svd
-
eigen
Computes the eigenvalue decomposition of the specified matrix.- Type Parameters:
E- the element type- Parameters:
matrix- the matrix to decompose- Returns:
- the eigenvalue result
-
lu
-
cholesky
Computes the Cholesky decomposition of the specified matrix.- Type Parameters:
E- the element type- Parameters:
matrix- the matrix to decompose- Returns:
- the Cholesky result
-
solve
-
bicgstab
-
conjugateGradient
-
gmres
-