mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jman...@apache.org
Subject svn commit: r909930 - /lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java
Date Sat, 13 Feb 2010 23:41:20 GMT
Author: jmannix
Date: Sat Feb 13 23:41:19 2010
New Revision: 909930

URL: http://svn.apache.org/viewvc?rev=909930&view=rev
Log:
Lots of other places where we could use this CardinalityException constructor, but here is
one I desparately needed for debugging.

Modified:
    lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java

Modified: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java?rev=909930&r1=909929&r2=909930&view=diff
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java (original)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/AbstractVector.java Sat
Feb 13 23:41:19 2010
@@ -120,7 +120,7 @@
 
   public double dot(Vector x) {
     if (size() != x.size()) {
-      throw new CardinalityException();
+      throw new CardinalityException(size(), x.size());
     }
     double result = 0;
     Iterator<Element> iter = iterateNonZero();



Mime
View raw message