Skip to content

Commit

Permalink
[MINOR] Bug ignore nan in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Sep 6, 2024
1 parent ac6dfe9 commit 802b84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/apache/sysds/test/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ public static void compareMatrices(double[][] expectedMatrix, double[][] actualM
int countErrors = 0;
for (int i = 0; i < rows && countErrors < 10; i++) {
for (int j = 0; j < cols && countErrors < 10; j++) {
if (!compareCellValue(expectedMatrix[i][j], actualMatrix[i][j], epsilon, true)) {
if (!compareCellValue(expectedMatrix[i][j], actualMatrix[i][j], epsilon, false)) {
message += ("\n Expected: " +expectedMatrix[i][j] +" vs actual: "+actualMatrix[i][j]+" at "+i+" "+j);
countErrors++;
}
Expand Down

0 comments on commit 802b84c

Please sign in to comment.