public class DenseMatrixFactoryMTJ extends MatrixFactory<DenseMatrix>
Modifier and Type | Field and Description |
---|---|
static DenseMatrixFactoryMTJ |
INSTANCE
Default instance of this
|
DEFAULT_DENSE_INSTANCE, DEFAULT_DIAGONAL_INSTANCE, DEFAULT_SPARSE_INSTANCE
Constructor and Description |
---|
DenseMatrixFactoryMTJ()
Creates a new instance of DenseMatrixFactoryMTJ
|
Modifier and Type | Method and Description |
---|---|
DenseMatrix |
copyMatrix(Matrix m)
Creates a deep copy new Matrix given another, argument is unchanged
|
DenseMatrix |
createMatrix(int numRows,
int numColumns)
Creates an empty Matrix of the specified dimensions, all elements
must be all zeros!
|
DenseMatrix |
createWrapper(no.uib.cipr.matrix.DenseMatrix internalMatrix)
Creates a new wrapper for a dense MTJ matrix.
|
copyArray, copyColumnVectors, copyColumnVectors, copyRowVectors, copyRowVectors, createDiagonal, createGaussianRandom, createIdentity, createIdentity, createMatrix, createUniformRandom, createUniformRandom, getDefault, getDenseDefault, getDiagonalDefault, getSparseDefault
public static final DenseMatrixFactoryMTJ INSTANCE
public DenseMatrixFactoryMTJ()
public DenseMatrix copyMatrix(Matrix m)
MatrixFactory
copyMatrix
in class MatrixFactory<DenseMatrix>
m
- Matrix to copypublic DenseMatrix createMatrix(int numRows, int numColumns)
MatrixFactory
createMatrix
in class MatrixFactory<DenseMatrix>
numRows
- number of rows in the MatrixnumColumns
- number of columns in the Matrixpublic DenseMatrix createWrapper(no.uib.cipr.matrix.DenseMatrix internalMatrix)
internalMatrix
- The MTJ matrix to wrap.