hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r720731 - /incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java
Date Wed, 26 Nov 2008 04:01:32 GMT
Author: edwardyoon
Date: Tue Nov 25 20:01:31 2008
New Revision: 720731

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

Modified:
    incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java

Modified: incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java?rev=720731&r1=720730&r2=720731&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/DenseMatrix.java Tue Nov 25 20:01:31 2008
@@ -499,7 +499,8 @@
       String[] key = Bytes.toString(row.getRow()).split("[,]");
       int blockR = Integer.parseInt(key[0]);
       int blockC = Integer.parseInt(key[1]);
-      setBlock(blockR, blockC, getBlock(blockR, blockC));
+      int[] pos = getBlockPosition(blockR, blockC);
+      setBlock(blockR, blockC, subMatrix(pos[0], pos[1], pos[2], pos[3]));
     }
   }
 



Mime
View raw message