You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2011/05/18 00:19:55 UTC

svn commit: r1104600 - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/linear/FieldVector.java main/java/org/apache/commons/math/linear/RealVector.java site/xdoc/changes.xml

Author: erans
Date: Tue May 17 22:19:54 2011
New Revision: 1104600

URL: http://svn.apache.org/viewvc?rev=1104600&view=rev
Log:
MATH-574
Fixed Javadoc.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldVector.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
    commons/proper/math/trunk/src/site/xdoc/changes.xml

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldVector.java?rev=1104600&r1=1104599&r2=1104600&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldVector.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldVector.java Tue May 17 22:19:54 2011
@@ -241,20 +241,16 @@ public interface FieldVector<T extends F
     /**
      * Compute the outer product.
      * @param v vector with which outer product should be computed
-     * @return the square matrix outer product between instance and v
-     * @exception IllegalArgumentException if v is not the same size as this
+     * @return the matrix outer product between instance and v
      */
-    FieldMatrix<T> outerProduct(FieldVector<T> v)
-        throws IllegalArgumentException;
+    FieldMatrix<T> outerProduct(FieldVector<T> v);
 
     /**
      * Compute the outer product.
      * @param v vector with which outer product should be computed
-     * @return the square matrix outer product between instance and v
-     * @exception IllegalArgumentException if v is not the same size as this
+     * @return the matrix outer product between instance and v
      */
-    FieldMatrix<T> outerProduct(T[] v)
-        throws IllegalArgumentException;
+    FieldMatrix<T> outerProduct(T[] v);
 
     /**
      * Returns the entry in the specified index.

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java?rev=1104600&r1=1104599&r2=1104600&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java Tue May 17 22:19:54 2011
@@ -480,18 +480,14 @@ public interface RealVector {
     /**
      * Compute the outer product.
      * @param v vector with which outer product should be computed
-     * @return the square matrix outer product between instance and v
-     * @throws org.apache.commons.math.exception.DimensionMismatchException
-     * if {@code v} is not the same size as this vector.
+     * @return the matrix outer product between instance and v
      */
     RealMatrix outerProduct(RealVector v);
 
     /**
      * Compute the outer product.
      * @param v vector with which outer product should be computed
-     * @return the square matrix outer product between instance and v
-     * @throws org.apache.commons.math.exception.DimensionMismatchException
-     * if {@code v} is not the same size as this vector.
+     * @return the matrix outer product between instance and v
      */
     RealMatrix outerProduct(double[] v);
 

Modified: commons/proper/math/trunk/src/site/xdoc/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/site/xdoc/changes.xml?rev=1104600&r1=1104599&r2=1104600&view=diff
==============================================================================
--- commons/proper/math/trunk/src/site/xdoc/changes.xml (original)
+++ commons/proper/math/trunk/src/site/xdoc/changes.xml Tue May 17 22:19:54 2011
@@ -52,6 +52,9 @@ The <action> type attribute can be add,u
     If the output is not quite correct, check for invisible trailing spaces!
      -->
     <release version="3.0" date="TBD" description="TBD">
+      <action dev="erans" type="fix" issue="MATH-574">
+        Allow outer product of vectors of different sizes.
+      </action>
       <action dev="luc" type="add" issue="MATH-576">
         A complete generic implementation of Binary Space Partitioning Trees (BSP trees)
         has been added. A few specializations of this implementation are also provided