public class CustomDenseMatrixFactory extends MatrixFactory<DenseMatrix>
Modifier and Type | Field and Description |
---|---|
static CustomDenseMatrixFactory |
INSTANCE
An instance of this class.
|
DEFAULT_DENSE_INSTANCE, DEFAULT_DIAGONAL_INSTANCE, DEFAULT_SPARSE_INSTANCE
Constructor and Description |
---|
CustomDenseMatrixFactory() |
Modifier and Type | Method and Description |
---|---|
DenseMatrix |
copyMatrix(Matrix m)
Creates a deep copy of m into a DenseMatrix and returns it.
|
DenseMatrix |
createMatrix(int numRows,
int numColumns)
Creates a new all-zero DenseMatrix of the specified dimensions.
|
copyArray, copyColumnVectors, copyColumnVectors, copyRowVectors, copyRowVectors, createDiagonal, createGaussianRandom, createIdentity, createIdentity, createMatrix, createUniformRandom, createUniformRandom, getDefault, getDenseDefault, getDiagonalDefault, getSparseDefault
public static final CustomDenseMatrixFactory INSTANCE
public final DenseMatrix copyMatrix(Matrix m)
copyMatrix
in class MatrixFactory<DenseMatrix>
m
- The matrix to copypublic final DenseMatrix createMatrix(int numRows, int numColumns)
createMatrix
in class MatrixFactory<DenseMatrix>
numRows
- The number of rows desired in the resultnumColumns
- The number of columns desired in the result