public class CustomSparseMatrixFactory extends MatrixFactory<SparseMatrix>
| Modifier and Type | Field and Description |
|---|---|
static CustomSparseMatrixFactory |
INSTANCE
An instance of this class.
|
DEFAULT_DENSE_INSTANCE, DEFAULT_DIAGONAL_INSTANCE, DEFAULT_SPARSE_INSTANCE| Constructor and Description |
|---|
CustomSparseMatrixFactory() |
| Modifier and Type | Method and Description |
|---|---|
SparseMatrix |
copyMatrix(Matrix m)
Creates a deep copy new Matrix given another, argument is unchanged
|
SparseMatrix |
createMatrix(int numRows,
int numColumns)
Creates an empty Matrix of the specified dimensions, all elements
must be all zeros!
|
copyArray, copyColumnVectors, copyColumnVectors, copyRowVectors, copyRowVectors, createDiagonal, createGaussianRandom, createIdentity, createIdentity, createMatrix, createUniformRandom, createUniformRandom, getDefault, getDenseDefault, getDiagonalDefault, getSparseDefaultpublic static CustomSparseMatrixFactory INSTANCE
public final SparseMatrix copyMatrix(Matrix m)
copyMatrix in class MatrixFactory<SparseMatrix>m - Matrix to copypublic final SparseMatrix createMatrix(int numRows, int numColumns)
createMatrix in class MatrixFactory<SparseMatrix>numRows - number of rows in the MatrixnumColumns - number of columns in the Matrix