You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by ni...@apache.org on 2018/10/22 16:41:48 UTC
systemml git commit: [MINOR] Bugfix in Large Dense Block
Repository: systemml
Updated Branches:
refs/heads/master 0a957e4c9 -> 73e1e40d7
[MINOR] Bugfix in Large Dense Block
- Current master throws java.lang.ArrayIndexOutOfBoundsException when
counting number of non-zeroes
Project: http://git-wip-us.apache.org/repos/asf/systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/73e1e40d
Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/73e1e40d
Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/73e1e40d
Branch: refs/heads/master
Commit: 73e1e40d766fda53210b5176597b182024cac344
Parents: 0a957e4
Author: Niketan Pansare <np...@us.ibm.com>
Authored: Mon Oct 22 09:34:26 2018 -0700
Committer: Niketan Pansare <np...@us.ibm.com>
Committed: Mon Oct 22 09:40:59 2018 -0700
----------------------------------------------------------------------
.../java/org/apache/sysml/runtime/matrix/data/DenseBlockLDRB.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/systemml/blob/73e1e40d/src/main/java/org/apache/sysml/runtime/matrix/data/DenseBlockLDRB.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/matrix/data/DenseBlockLDRB.java b/src/main/java/org/apache/sysml/runtime/matrix/data/DenseBlockLDRB.java
index fda1b30..6e99fbd 100644
--- a/src/main/java/org/apache/sysml/runtime/matrix/data/DenseBlockLDRB.java
+++ b/src/main/java/org/apache/sysml/runtime/matrix/data/DenseBlockLDRB.java
@@ -164,7 +164,7 @@ public class DenseBlockLDRB extends DenseBlock
nnz += UtilFunctions.computeNnz(data[bi], lpos, len);
else
for(int i=lpos; i<lpos+len; i+=clen)
- nnz += UtilFunctions.computeNnz(data[i], i+cl, cu-cl);
+ nnz += UtilFunctions.computeNnz(data[bi], i+cl, cu-cl);
}
return nnz;
}