X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fmath%2FMatrixI.java;fp=src%2Fjalview%2Fmath%2FMatrixI.java;h=d74a98b4909ba85697c94de032a4356f6c7ddd15;hb=d5bcc3830eab04e6db816e1c2ad8fce1dc189612;hp=0000000000000000000000000000000000000000;hpb=3ebdd4e28382e38a181aae1eed71549f603f9025;p=jalview.git diff --git a/src/jalview/math/MatrixI.java b/src/jalview/math/MatrixI.java new file mode 100644 index 0000000..d74a98b --- /dev/null +++ b/src/jalview/math/MatrixI.java @@ -0,0 +1,59 @@ +package jalview.math; + +import java.io.PrintStream; + +public interface MatrixI +{ + /** + * Answers the number of columns + * + * @return + */ + int width(); + + /** + * Answers the number of rows + * + * @return + */ + int height(); + + /** + * Answers the value at row i, column j + * + * @param i + * @param j + * @return + */ + double getValue(int i, int j); + + /** + * Answers a copy of the values in the i'th row + * + * @return + */ + double[] getRow(int i); + + MatrixI copy(); + + MatrixI transpose(); + + MatrixI preMultiply(MatrixI m); + + MatrixI postMultiply(MatrixI m); + + double[] getD(); + + double[] getE(); + + void print(PrintStream ps, String format); + + void printD(PrintStream ps, String format); + + void printE(PrintStream ps, String format); + + void tqli() throws Exception; + + void tred(); + +}