Package org.ejml.dense.row.factory
Class DecompositionFactory_CDRM
java.lang.Object
org.ejml.dense.row.factory.DecompositionFactory_CDRM
@Generated("org.ejml.dense.row.factory.DecompositionFactory_ZDRM")
public class DecompositionFactory_CDRM
extends 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CholeskyDecomposition_F32<CMatrixRMaj>
chol
(int size, boolean lower) Returns aCholeskyDecomposition_F32
that has been optimized for the specified matrix size.static boolean
decomposeSafe
(DecompositionInterface<CMatrixRMaj> decomposition, CMatrixRMaj a) Decomposes the input matrix 'a' and makes sure it isn't modified.static LUDecomposition_F32<CMatrixRMaj>
lu
(int numRows, int numCols) Returns aLUDecomposition
that has been optimized for the specified matrix size.static QRDecomposition<CMatrixRMaj>
qr
(int numRows, int numCols) Returns aQRDecomposition
that has been optimized for the specified matrix size.
-
Constructor Details
-
DecompositionFactory_CDRM
public DecompositionFactory_CDRM()
-
-
Method Details
-
lu
Returns a
LUDecomposition
that has been optimized for the specified matrix size.- Parameters:
numRows
- Number of rows the returned decomposition is optimized for.numCols
- Number of columns that the returned decomposition is optimized for.- Returns:
- LUDecomposition
-
qr
Returns a
QRDecomposition
that has been optimized for the specified matrix size.- Parameters:
numRows
- Number of rows the returned decomposition is optimized for.numCols
- Number of columns that the returned decomposition is optimized for.- Returns:
- QRDecomposition
-
chol
Returns a
CholeskyDecomposition_F32
that has been optimized for the specified matrix size.- Parameters:
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.- Returns:
- QRDecomposition
-
decomposeSafe
public static boolean decomposeSafe(DecompositionInterface<CMatrixRMaj> decomposition, CMatrixRMaj a) Decomposes the input matrix 'a' and makes sure it isn't modified.
-