public class ArrayJacobianMatrix extends java.lang.Object implements JacobianMatrix
JacobianMatrix.Element
Constructor and Description |
---|
ArrayJacobianMatrix(int nrow,
int ncol) |
Modifier and Type | Method and Description |
---|---|
void |
addInPlace(int row,
int column,
JacobianElement value)
Add a value in place
|
int |
getColumnCount()
Return the number of columns in the matrix
|
int |
getRowCount()
Return the number of rows in the matrix.
|
JacobianElement |
getValue(int row,
int column)
Get a value
|
void |
setValue(int row,
int column,
JacobianElement value)
Set a value
|
void |
subInPlace(int row,
int column,
JacobianElement value)
subtract a value in place
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int getRowCount()
Matrix
getRowCount
in interface Matrix<JacobianElement>
public int getColumnCount()
Matrix
getColumnCount
in interface Matrix<JacobianElement>
public void setValue(int row, int column, JacobianElement value)
Matrix
setValue
in interface Matrix<JacobianElement>
row
- location of new valuecolumn
- location of new valuevalue
- value to storepublic JacobianElement getValue(int row, int column)
Matrix
getValue
in interface Matrix<JacobianElement>
row
- location of new valuecolumn
- location of new valuepublic void addInPlace(int row, int column, JacobianElement value)
Matrix
addInPlace
in interface JacobianMatrix
addInPlace
in interface Matrix<JacobianElement>
row
- location of updated valuecolumn
- location of updated valuevalue
- to add at given locationpublic void subInPlace(int row, int column, JacobianElement value)
Matrix
subInPlace
in interface JacobianMatrix
subInPlace
in interface Matrix<JacobianElement>
row
- location of updated valuecolumn
- location of updated valuevalue
- to subtract at given location