Repository: systemml
Updated Branches:
  refs/heads/master 0aaf11d82 -> aed46e3b5


[MINOR] Fix test utils matrix market reader for 'pattern symmetric'

Project: http://git-wip-us.apache.org/repos/asf/systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/34482f8e
Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/34482f8e
Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/34482f8e

Branch: refs/heads/master
Commit: 34482f8e4fcf48e36c4c87f409e93ecc02c0979e
Parents: 0aaf11d
Author: Matthias Boehm <mboe...@gmail.com>
Authored: Tue Jul 17 15:23:13 2018 -0700
Committer: Matthias Boehm <mboe...@gmail.com>
Committed: Tue Jul 17 15:23:13 2018 -0700

----------------------------------------------------------------------
 src/test/java/org/apache/sysml/test/utils/TestUtils.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/systemml/blob/34482f8e/src/test/java/org/apache/sysml/test/utils/TestUtils.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/sysml/test/utils/TestUtils.java 
b/src/test/java/org/apache/sysml/test/utils/TestUtils.java
index 545ae17..29745c5 100644
--- a/src/test/java/org/apache/sysml/test/utils/TestUtils.java
+++ b/src/test/java/org/apache/sysml/test/utils/TestUtils.java
@@ -437,8 +437,11 @@ public class TestUtils
                                        if ( matrixType == 2 )
                                                expectedValues.put(new 
CellIndex(j, i), v);
                                }
-                               else
+                               else { //pattern
                                        expectedValues.put(new CellIndex(i, j), 
1.0);
+                                       if ( matrixType == 2 )
+                                               expectedValues.put(new 
CellIndex(j, i), 1.0);
+                               }
                        }
                } 
                catch (IOException e) {

Reply via email to