Author: jmannix
Date: Fri Aug  6 01:02:00 2010
New Revision: 982843

URL: http://svn.apache.org/viewvc?rev=982843&view=rev
Log:
Fixes bug mentioned by Laszlo Dosa on user-, where DRM is created with the 
wrong cardinality after times().


Modified:
    
mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/DistributedRowMatrix.java

Modified: 
mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/DistributedRowMatrix.java
URL: 
http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/DistributedRowMatrix.java?rev=982843&r1=982842&r2=982843&view=diff
==============================================================================
--- 
mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/DistributedRowMatrix.java
 (original)
+++ 
mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/DistributedRowMatrix.java
 Fri Aug  6 01:02:00 2010
@@ -142,7 +142,7 @@ public class DistributedRowMatrix implem
     Path outPath = new Path(outputTmpBasePath.getParent(), "productWith");
     JobConf conf = 
MatrixMultiplicationJob.createMatrixMultiplyJobConf(rowPath, other.rowPath, 
outPath, other.numCols);
     JobClient.runJob(conf);
-    DistributedRowMatrix out = new DistributedRowMatrix(outPath, 
outputTmpPath, numRows, other.numCols());
+    DistributedRowMatrix out = new DistributedRowMatrix(outPath, 
outputTmpPath, numCols, other.numCols());
     out.configure(conf);
     return out;
   }


Reply via email to