sim.util.matrix
Class BorderedDiagonalIdentityMatrix
java.lang.Object
sim.util.matrix.Matrix
sim.util.matrix.BorderedDiagonalIdentityMatrix
public class BorderedDiagonalIdentityMatrix
- extends Matrix
Fields inherited from class sim.util.matrix.Matrix |
m, n |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
vals
public double[] vals
borderRows
public int borderRows
BorderedDiagonalIdentityMatrix
public BorderedDiagonalIdentityMatrix(int m,
int borderRows)
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)