|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface MatrixData
This interface defines for (an abstract) storage of matrix data.
It allow us to:
1.
We can provide default implementations for some matrix operations that do not depend on the particular matrix implementation.
E.g., MatrixMathImpl.
2.
Conceivably, we could experiment different ways of implementing a matrix.
This interface allows us to swap implementations.
| Method Summary | |
|---|---|
double |
get(int row,
int col)
Get the matrix entry at [row, col]. |
void |
set(int row,
int col,
double value)
Set the matrix entry at [row, col] to value. |
| Methods inherited from interface com.numericalmethod.suanshu.DeepCopyable |
|---|
deepCopy |
| Method Detail |
|---|
void set(int row,
int col,
double value)
[row, col] to value.
This is the only function that may change the entries of a matrix.
row - the row indexcol - the column indexvalue - the value to set A[row, col] to
MatrixAccessException - if row or col is out of range
double get(int row,
int col)
[row, col].
row - the row indexcol - the column index
A[row, col]
MatrixAccessException - if row or col is out of range
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||