public interface Matrix<T>
Modifier and Type | Method and Description |
---|---|
void |
addInPlace(int row,
int column,
T value)
Add a value in place
|
default void |
dump(java.io.PrintWriter pw,
MatrixDebug<T> dbg) |
int |
getColumnCount()
Return the number of columns in the matrix
|
int |
getRowCount()
Return the number of rows in the matrix.
|
T |
getValue(int row,
int column)
Get a value
|
void |
setValue(int row,
int column,
T value)
Set a value
|
void |
subInPlace(int row,
int column,
T value)
subtract a value in place
|
int getRowCount()
int getColumnCount()
void setValue(int row, int column, T value)
row
- location of new valuecolumn
- location of new valuevalue
- value to storeT getValue(int row, int column)
row
- location of new valuecolumn
- location of new valuevoid addInPlace(int row, int column, T value)
row
- location of updated valuecolumn
- location of updated valuevalue
- to add at given locationvoid subInPlace(int row, int column, T value)
row
- location of updated valuecolumn
- location of updated valuevalue
- to subtract at given locationdefault void dump(java.io.PrintWriter pw, MatrixDebug<T> dbg) throws PAModelException
PAModelException