sbrt.kernel.math.algebra
Class MatrixMultiplier

java.lang.Object
  extended by sbrt.kernel.math.algebra.MatrixMultiplier

public class MatrixMultiplier
extends java.lang.Object

This class is used to multiply matrices.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
MatrixMultiplier()
           
 
Method Summary
<R,C,T> void
multiply(SparseDoubleMatrix<R,C> matrixA, SparseDoubleMatrix<C,T> matrixB, DoubleMatrixBuilder<R,T> product)
          Fills product with matrixA * matrixB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixMultiplier

public MatrixMultiplier()
Method Detail

multiply

public <R,C,T> void multiply(SparseDoubleMatrix<R,C> matrixA,
                             SparseDoubleMatrix<C,T> matrixB,
                             DoubleMatrixBuilder<R,T> product)
Fills product with matrixA * matrixB.

Type Parameters:
R - the row type of matrixA.
C - the column type of matrixA and row type of matrixB.
T - the column type of matrixB.
Parameters:
matrixA - a matrix.
matrixB - a matrix.
product - an empty matrix.