X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fmath%2FMatrixI.java;h=2c786532782465107b22ccf181ef48837f8c5e75;hb=fbee8e851a60b04ed79ed0e21d9e5af6ee488c0e;hp=dd7aaf139c8560e63bfa00c89a1013f1fc3a23e7;hpb=11ec9d4540710b65b82b8b901de07b441c130887;p=jalview.git diff --git a/src/jalview/math/MatrixI.java b/src/jalview/math/MatrixI.java index dd7aaf1..2c78653 100644 --- a/src/jalview/math/MatrixI.java +++ b/src/jalview/math/MatrixI.java @@ -116,6 +116,10 @@ public interface MatrixI double[] getE(); + void setD(double[] v); + + void setE(double[] v); + void print(PrintStream ps, String format); void printD(PrintStream ps, String format); @@ -155,4 +159,14 @@ public interface MatrixI * @param d */ void multiply(double d); + + /** + * Answers true if the two matrices have the same dimensions, and corresponding values all differ by no + * more than delta (which should be a positive value), else false + * + * @param m2 + * @param delta + * @return + */ + boolean equals(MatrixI m2, double delta); }