public Matrix
This interface defines a minimal set of operations that a matrix must implement. This interface is used by the class Smawk class to provide a general services regardless of how the matrix is actually stored.
class Smawk,
class Smawkint valueAt(int row,
int col)
Returns the value at an specified row and column.
row - row number of element to be retrievedcol - column number of element to be retrievedrow column colint numRows()
Returns the number of rows that this matrix has.
int numColumns()
Returns the number of columns that this matrix has.