You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ps...@apache.org on 2004/04/08 09:02:55 UTC
cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/linear RealMatrix.java
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