public class DecompositionFactory_ZDRM
extends java.lang.Object
Contains operations related to creating and evaluating the quality of common matrix decompositions. Except in specialized situations, matrix decompositions should be instantiated from this factory instead of being directly constructed. Low level implementations are more prone to changes and new algorithms will be automatically placed here.
Constructor and Description |
---|
DecompositionFactory_ZDRM() |
Modifier and Type | Method and Description |
---|---|
static org.ejml.interfaces.decomposition.CholeskyDecomposition_F64<org.ejml.data.ZMatrixRMaj> |
chol(int size,
boolean lower)
Returns a
CholeskyDecomposition_F64 that has been optimized for the specified matrix size. |
static boolean |
decomposeSafe(org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.ZMatrixRMaj> decomposition,
org.ejml.data.ZMatrixRMaj a)
Decomposes the input matrix 'a' and makes sure it isn't modified.
|
static org.ejml.interfaces.decomposition.LUDecomposition_F64<org.ejml.data.ZMatrixRMaj> |
lu(int numRows,
int numCols)
Returns a
LUDecomposition that has been optimized for the specified matrix size. |
static org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.ZMatrixRMaj> |
qr(int numRows,
int numCols)
Returns a
QRDecomposition that has been optimized for the specified matrix size. |
public static org.ejml.interfaces.decomposition.LUDecomposition_F64<org.ejml.data.ZMatrixRMaj> lu(int numRows, int numCols)
Returns a LUDecomposition
that has been optimized for the specified matrix size.
numRows
- Number of rows the returned decomposition is optimized for.numCols
- Number of columns that the returned decomposition is optimized for.public static org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.ZMatrixRMaj> qr(int numRows, int numCols)
Returns a QRDecomposition
that has been optimized for the specified matrix size.
numRows
- Number of rows the returned decomposition is optimized for.numCols
- Number of columns that the returned decomposition is optimized for.public static org.ejml.interfaces.decomposition.CholeskyDecomposition_F64<org.ejml.data.ZMatrixRMaj> chol(int size, boolean lower)
Returns a CholeskyDecomposition_F64
that has been optimized for the specified matrix size.
size
- Number of rows and columns it should be optimized forlower
- if true then it will be a lower cholesky. false for upper. Try lower.public static boolean decomposeSafe(org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.ZMatrixRMaj> decomposition, org.ejml.data.ZMatrixRMaj a)