sim.util.matrix
Class BlockSparseMatrix

java.lang.Object
  extended by sim.util.matrix.Matrix
      extended by sim.util.matrix.BlockSparseMatrix

public class BlockSparseMatrix
extends Matrix


Field Summary
 
Fields inherited from class sim.util.matrix.Matrix
m, n
 
Constructor Summary
BlockSparseMatrix(int m, int n)
           
 
Method Summary
 DenseMatrix getDenseMatrix()
           
 DiagonalMatrix getDiagonalMatrix()
           
 void setBlock(int rowoffset, int coloffset, double[][] vals)
           
 Vector times(Vector other)
           
 Vector times(Vector other, Vector result)
           
 java.lang.String toString()
           
 Vector transposeTimes(Vector other)
           
 Vector transposeTimes(Vector other, Vector C)
           
 
Methods inherited from class sim.util.matrix.Matrix
solveBiConjugateGradient, solveBiConjugateGradient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockSparseMatrix

public BlockSparseMatrix(int m,
                         int n)
Method Detail

setBlock

public void setBlock(int rowoffset,
                     int coloffset,
                     double[][] vals)

times

public Vector times(Vector other)
Specified by:
times in class Matrix

times

public Vector times(Vector other,
                    Vector result)
Specified by:
times in class Matrix

transposeTimes

public Vector transposeTimes(Vector other)
Specified by:
transposeTimes in class Matrix

transposeTimes

public Vector transposeTimes(Vector other,
                             Vector C)
Specified by:
transposeTimes in class Matrix

getDiagonalMatrix

public DiagonalMatrix getDiagonalMatrix()
Specified by:
getDiagonalMatrix in class Matrix

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDenseMatrix

public DenseMatrix getDenseMatrix()