public class SparseMatrixFactoryMTJ extends MatrixFactory<SparseMatrix>
| Modifier and Type | Field and Description |
|---|---|
static SparseMatrixFactoryMTJ |
INSTANCE
Default instance of this
|
DEFAULT_DENSE_INSTANCE, DEFAULT_DIAGONAL_INSTANCE, DEFAULT_SPARSE_INSTANCE| Constructor and Description |
|---|
SparseMatrixFactoryMTJ()
Creates a new instance of SparseMatrixFactoryMTJ
|
| 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!
|
SparseColumnMatrix |
createWrapper(no.uib.cipr.matrix.sparse.FlexCompColMatrix internalMatrix)
Creates a new wrapper for a sparse column MTJ matrix.
|
SparseRowMatrix |
createWrapper(no.uib.cipr.matrix.sparse.FlexCompRowMatrix internalMatrix)
Creates a new wrapper for a sparse row MTJ matrix.
|
copyArray, copyColumnVectors, copyColumnVectors, copyRowVectors, copyRowVectors, createDiagonal, createGaussianRandom, createIdentity, createIdentity, createMatrix, createUniformRandom, createUniformRandom, getDefault, getDenseDefault, getDiagonalDefault, getSparseDefaultpublic static final SparseMatrixFactoryMTJ INSTANCE
public SparseMatrixFactoryMTJ()
public SparseMatrix copyMatrix(Matrix m)
MatrixFactorycopyMatrix in class MatrixFactory<SparseMatrix>m - Matrix to copypublic SparseMatrix createMatrix(int numRows, int numColumns)
MatrixFactorycreateMatrix in class MatrixFactory<SparseMatrix>numRows - number of rows in the MatrixnumColumns - number of columns in the Matrixpublic SparseColumnMatrix createWrapper(no.uib.cipr.matrix.sparse.FlexCompColMatrix internalMatrix)
internalMatrix - The MTJ matrix to wrap.public SparseRowMatrix createWrapper(no.uib.cipr.matrix.sparse.FlexCompRowMatrix internalMatrix)
internalMatrix - The MTJ matrix to wrap.