commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/linear RealMatrix.java
Date Thu, 08 Apr 2004 07:02:55 GMT
psteitz     2004/04/08 00:02:55

  Modified:    math/src/java/org/apache/commons/math/linear RealMatrix.java
  Log:
  Added RealMatrix preMultiply(RealMatrix).
  Modified preMultiply(double[]) to return a double[].
  
  Revision  Changes    Path
  1.14      +12 -3     jakarta-commons/math/src/java/org/apache/commons/math/linear/RealMatrix.java
  
  Index: RealMatrix.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/linear/RealMatrix.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- RealMatrix.java	3 Apr 2004 22:18:04 -0000	1.13
  +++ RealMatrix.java	8 Apr 2004 07:02:55 -0000	1.14
  @@ -83,6 +83,15 @@
       RealMatrix multiply(RealMatrix m) throws IllegalArgumentException;
       
       /**
  +     * Returns the result premultiplying this by <code>m</code>.
  +     * @param m    matrix to premultiply by
  +     * @return     m * this
  +     * @throws     IllegalArgumentException
  +     *             if rowDimension(this) != columnDimension(m)
  +     */
  +    public RealMatrix preMultiply(RealMatrix m) throws IllegalArgumentException;
  +    
  +    /**
        * Returns matrix entries as a two-dimensional array.
        *
        * @return    2-dimensional array of entries
  @@ -215,13 +224,13 @@
       double[] operate(double[] v) throws IllegalArgumentException;
       
       /**
  -     * Returns the result of premultiplying this by the vector <code>v</code>.
  +     * Returns the (row) vector result of premultiplying this by the vector <code>v</code>.
        *
        * @param v the row vector to premultiply by
        * @return v*this
        * @throws IllegalArgumentException if rowDimension != v.size()
        */
  -    RealMatrix preMultiply(double[] v) throws IllegalArgumentException;  
  +    double[] preMultiply(double[] v) throws IllegalArgumentException;  
       
       /**
        * Returns the solution vector for a linear system with coefficient
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message