Interface MatrixDecomposition.Factory<D extends MatrixDecomposition<?>>
- All Known Subinterfaces:
Bidiagonal.Factory<N>, Cholesky.Factory<N>, Eigenvalue.Factory<N>, Hessenberg.Factory<N>, LDL.Factory<N>, LU.Factory<N>, QR.Factory<N>, SingularValue.Factory<N>, Tridiagonal.Factory<N>
- All Known Implementing Classes:
LDL.ModifiedFactory
- Enclosing interface:
MatrixDecomposition<N extends Comparable<N>>
public static interface MatrixDecomposition.Factory<D extends MatrixDecomposition<?>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <N extends Comparable<N>, DN extends MatrixDecomposition<N>>
DNdecompose(Access2D.Collectable<N, ? super TransformableRegion<N>> matrix) Will create a new decomposition instance and directly perform the decomposition.default Dmake()Will create a new decomposition instance suitable for typical/most cases.default Dmake(int nbRows, int nbCols) Will create a new decomposition instance suitable for matrices of the specified size.make(Structure2D typical) Will create a new decomposition instance suitable for matrices of the specified size.
-
Method Details
-
decompose
default <N extends Comparable<N>, DN extends MatrixDecomposition<N>> DN decompose(Access2D.Collectable<N, ? super TransformableRegion<N>> matrix) Will create a new decomposition instance and directly perform the decomposition. -
make
Will create a new decomposition instance suitable for typical/most cases.To calculate the decomposition you then need to call the
decompose(Access2D.Collectable)method.- Returns:
- A "decomposer" ready to decompose matrices.
-
make
Will create a new decomposition instance suitable for matrices of the specified size.To calculate the decomposition you then need to call the
decompose(Access2D.Collectable)method.- Parameters:
nbRows- The expected number of rows in the matrices to decomposenbCols- The expected number of columns in the matrices to decompose- Returns:
- A "decomposer" ready to decompose matrices.
-
make
Will create a new decomposition instance suitable for matrices of the specified size.To calculate the decomposition you then need to call the
decompose(Access2D.Collectable)method.- Parameters:
typical- A 2D structure of roughly the expected size with which this decomposition will be used.- Returns:
- A "decomposer" ready to decompose matrices.
-