3 import java.io.PrintStream;
5 public interface MatrixI
8 * Answers the number of columns
15 * Answers the number of rows
22 * Answers the value at row i, column j
28 double getValue(int i, int j);
31 * Sets the value at row i, colum j
37 void setValue(int i, int j, double d);
40 * Answers a copy of the values in the i'th row
44 double[] getRow(int i);
50 MatrixI preMultiply(MatrixI m);
52 MatrixI postMultiply(MatrixI m);
58 void print(PrintStream ps, String format);
60 void printD(PrintStream ps, String format);
62 void printE(PrintStream ps, String format);
64 void tqli() throws Exception;
71 * Update each value in the matrix by subtracting it from the given value
75 void subtractAllFrom(double val);