hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r691827 - /incubator/hama/trunk/src/java/org/apache/hama/algebra/MultiplicationMap.java
Date Wed, 03 Sep 2008 23:28:30 GMT
Author: edwardyoon
Date: Wed Sep  3 16:28:29 2008
New Revision: 691827

URL: http://svn.apache.org/viewvc?rev=691827&view=rev
Log: (empty)

Modified:
    incubator/hama/trunk/src/java/org/apache/hama/algebra/MultiplicationMap.java

Modified: incubator/hama/trunk/src/java/org/apache/hama/algebra/MultiplicationMap.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/algebra/MultiplicationMap.java?rev=691827&r1=691826&r2=691827&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/algebra/MultiplicationMap.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/algebra/MultiplicationMap.java Wed Sep 
3 16:28:29 2008
@@ -42,12 +42,8 @@
     Iterator<VectorEntry> it = value.iterator();
     int i = 0;
     while (it.hasNext()) {
-      VectorEntry c = it.next();
-      
       Vector v = MATRIX_B.getRow(i);
-      
-      double alpha = c.getValue();
-      output.collect(key, (DenseVector) v.scale(alpha));
+      output.collect(key, (DenseVector) v.scale(it.next().getValue()));
       i++;
     }
   }



Mime
View raw message