X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fmath%2FMatrixI.java;h=e98007e5b084cf243c3d5919599a2a4ff7d13984;hb=c5573e5957f2a470d17867857d80dc4de1e012a4;hp=dd7aaf139c8560e63bfa00c89a1013f1fc3a23e7;hpb=11ec9d4540710b65b82b8b901de07b441c130887;p=jalview.git diff --git a/src/jalview/math/MatrixI.java b/src/jalview/math/MatrixI.java index dd7aaf1..e98007e 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,15 @@ 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); }