gov.sandia.cognition.math.matrix.mtj
Class DenseMatrixFactoryMTJ

java.lang.Object
  extended by gov.sandia.cognition.math.matrix.MatrixFactory<DenseMatrix>
      extended by gov.sandia.cognition.math.matrix.mtj.DenseMatrixFactoryMTJ
All Implemented Interfaces:
Serializable

public class DenseMatrixFactoryMTJ
extends MatrixFactory<DenseMatrix>

MatrixFactory for creating MTJ's DenseMatrix-based Matrix

Since:
1.0
Author:
Kevin R. Dixon
See Also:
Serialized Form

Field Summary
static DenseMatrixFactoryMTJ INSTANCE
          Default instance of this
 
Fields inherited from class gov.sandia.cognition.math.matrix.MatrixFactory
DEFAULT_DENSE_INSTANCE, DEFAULT_DIAGONAL_INSTANCE, DEFAULT_SPARSE_INSTANCE
 
Constructor Summary
DenseMatrixFactoryMTJ()
          Creates a new instance of DenseMatrixFactoryMTJ
 
Method Summary
 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.
 
Methods inherited from class gov.sandia.cognition.math.matrix.MatrixFactory
copyArray, copyColumnVectors, copyColumnVectors, copyRowVectors, copyRowVectors, createDiagonal, createIdentity, createMatrix, createUniformRandom, getDefault, getDenseDefault, getDiagonalDefault, getSparseDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DenseMatrixFactoryMTJ INSTANCE
Default instance of this

Constructor Detail

DenseMatrixFactoryMTJ

public DenseMatrixFactoryMTJ()
Creates a new instance of DenseMatrixFactoryMTJ

Method Detail

copyMatrix

public DenseMatrix copyMatrix(Matrix m)
Description copied from class: MatrixFactory
Creates a deep copy new Matrix given another, argument is unchanged

Specified by:
copyMatrix in class MatrixFactory<DenseMatrix>
Parameters:
m - Matrix to copy
Returns:
Deep copy of the given Matrix

createMatrix

public DenseMatrix createMatrix(int numRows,
                                int numColumns)
Description copied from class: MatrixFactory
Creates an empty Matrix of the specified dimensions, all elements must be all zeros!

Specified by:
createMatrix in class MatrixFactory<DenseMatrix>
Parameters:
numRows - number of rows in the Matrix
numColumns - number of columns in the Matrix
Returns:
All-zero empty Matrix of the specified dimensions

createWrapper

public DenseMatrix createWrapper(no.uib.cipr.matrix.DenseMatrix internalMatrix)
Creates a new wrapper for a dense MTJ matrix.

Parameters:
internalMatrix - The MTJ matrix to wrap.
Returns:
A wrapper of the given MTJ matrix.