JAL-1767 getters/setters for D and E vectors
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 2 May 2018 14:42:05 +0000 (15:42 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 2 May 2018 14:42:05 +0000 (15:42 +0100)
src/jalview/math/Matrix.java
src/jalview/math/MatrixI.java

index 804421b..77862c8 100755 (executable)
@@ -972,4 +972,16 @@ public class Matrix implements MatrixI
       }
     }
   }
+
+  @Override
+  public void setD(double[] v)
+  {
+    d = v;
+  }
+
+  @Override
+  public void setE(double[] v)
+  {
+    e = v;
+  }
 }
index dd7aaf1..d72890a 100644 (file)
@@ -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);