X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fmath%2FMatrixI.java;h=5b93c76ca121ea3a9e57a02ffdfe37a2cd6376af;hb=6d06be2714c9cba8c69148d5e2d26b50b7051840;hp=f0603dd3cb0dc36a09996661610c0daa132fc35f;hpb=582493a5b56d3e01d901c6da9906685c31a32abb;p=jalview.git diff --git a/src/jalview/math/MatrixI.java b/src/jalview/math/MatrixI.java index f0603dd..5b93c76 100644 --- a/src/jalview/math/MatrixI.java +++ b/src/jalview/math/MatrixI.java @@ -1,3 +1,23 @@ +/* + * 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 . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.math; import java.io.PrintStream; @@ -42,7 +62,7 @@ public interface MatrixI * @return */ double[] getRow(int i); - + MatrixI copy(); MatrixI transpose(); @@ -87,4 +107,11 @@ public interface MatrixI * @param maxToZero */ void reverseRange(boolean maxToZero); + + /** + * Multiply all entries by the given value + * + * @param d + */ + void multiply(double d); }