X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fmath%2FMatrixI.java;h=2c786532782465107b22ccf181ef48837f8c5e75;hb=afffa24481a7d3cb65ae41e0948c16a5f490f302;hp=94b933349d2352474331b8d0961a394909ae5e49;hpb=eb0d71ed66dcd7d8519eae1f084b76d60b374142;p=jalview.git
diff --git a/src/jalview/math/MatrixI.java b/src/jalview/math/MatrixI.java
index 94b9333..2c78653 100644
--- a/src/jalview/math/MatrixI.java
+++ b/src/jalview/math/MatrixI.java
@@ -1,7 +1,31 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see
+ * This method simply returns the result of in.preMultiply(this) + * + * @param in + * + * @return + * @throws IllegalArgumentException + * if the number of rows in the post-multiplier is not equal to the + * number of columns in the multiplicand (this) + * @see #preMultiply(Matrix) + */ MatrixI postMultiply(MatrixI m); double[] getD(); double[] getE(); + void setD(double[] v); + + void setE(double[] v); + void print(PrintStream ps, String format); void printD(PrintStream ps, String format); @@ -94,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); }