Skip to content

Commit 1128c5f

Browse files
committed
Fix bug: LINEQN tolerance
1 parent 367d924 commit 1128c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/blib_math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void mat_gauss_jordan(var_num_t *a, var_num_t *b, int n, double toler) {
121121
indxr[i] = irow;
122122
indxc[i] = icol;
123123

124-
if (a[icol * n + icol] < toler) {
124+
if (fabs(a[icol * n + icol]) < toler) {
125125
err_matsig();
126126
free(indxc);
127127
free(indxr);

0 commit comments

Comments
 (0)