|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Matrix
This interface defines a minimal set of operations that a matrix must implement. This interface is used by the class to provide a general services regardless of how the matrix is actually stored.
Smawk| Method Summary | |
|---|---|
int |
numColumns()
Returns the number of columns that this matrix has. |
int |
numRows()
Returns the number of rows that this matrix has. |
int |
valueAt(int row,
int col)
Returns the value at an specified row and column. |
| Method Detail |
|---|
int valueAt(int row,
int col)
row - row number of element to be retrievedcol - column number of element to be retrieved
row column colint numRows()
int numColumns()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||