Permalink
Browse files

Fix the Winxed elimination example. Winxed does integer comparison on…

… foo[x, y] == 0 where NQP does floating point comparison there. Be explicit
  • Loading branch information...
1 parent 64f2a93 commit d49ea6e058eee2096f0db5d90eca0bec4eccbca3 @Whiteknight committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/elimination.winxed
@@ -34,7 +34,7 @@ function gaussian_elimination(var A)
maxi = k;
k++;
}
- if (A[maxi, j] != 0) {
+ if (A[maxi, j] != 0.0) {
A.row_swap(maxi, i);
debug(A, "row %d <-> row %d", maxi, i);
@@ -72,7 +72,7 @@ function gauss_jordan_elimination(var A)
maxi = k;
k++;
}
- if (A[maxi, j] != 0) {
+ if (A[maxi, j] != 0.0) {
A.row_swap(maxi, i);
debug(A, "row %d <-> row %d", maxi, i);

0 comments on commit d49ea6e

Please sign in to comment.