sim.util.matrix
Class BorderedDiagonalIdentityMatrix

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

public class BorderedDiagonalIdentityMatrix
extends Matrix


Field Summary
 int borderRows
           
 double[] vals
           
 
Fields inherited from class sim.util.matrix.Matrix
m, n
 
Constructor Summary
BorderedDiagonalIdentityMatrix(int m, int borderRows)
           
 
Method Summary
 Vector DILUSolve(Vector x, double[] pivots)
           
 Vector DILUTransposeSolve(Vector x, double[] pivots)
           
 Bag getBlocks()
           
 DenseMatrix getDenseMatrix()
           
 DiagonalMatrix getDiagonalMatrix()
           
 double[] getPivots()
           
 void setBlock(int rowoffset, int coloffset, double[][] vals)
           
 Vector times(Vector other)
           
 Vector times(Vector other, Vector C)
           
 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
 

Field Detail

vals

public double[] vals

borderRows

public int borderRows
Constructor Detail

BorderedDiagonalIdentityMatrix

public BorderedDiagonalIdentityMatrix(int m,
                                      int borderRows)
Method Detail

getBlocks

public Bag getBlocks()

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 C)
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()

getPivots

public double[] getPivots()

DILUSolve

public Vector DILUSolve(Vector x,
                        double[] pivots)

DILUTransposeSolve

public Vector DILUTransposeSolve(Vector x,
                                 double[] pivots)