Changeset 39369
- Timestamp:
- Feb 23, 2016, 5:36:13 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/src/gaussj.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/src/gaussj.c
r38553 r39369 57 57 for (row = 0; row < N; row++) { 58 58 if (!finite(A[row][diag])) { 59 fprintf (stderr, "infinity\n");59 push_error ("infinity"); 60 60 goto escape; 61 61 } … … 90 90 // if pivot[maxcol] is set, we have already done this row: this implies a singular matrix 91 91 if (pivot[maxcol]) { 92 fprintf (stderr, "singular\n");92 push_error ("singular"); 93 93 goto escape; 94 94 } … … 103 103 colIndex[diag] = maxcol; 104 104 if (A[maxcol][maxcol] == 0.0) { 105 fprintf (stderr, "zero pivot\n");105 push_error ("zero pivot"); 106 106 goto escape; 107 107 } … … 143 143 144 144 if (fabs(growth) > MAX_RANGE) { 145 fprintf (stderr, "max range\n");145 push_error ("max range"); 146 146 # if (VERY_VERBOSE) 147 147 fprintf (stderr, "full A matrix:\n");
Note:
See TracChangeset
for help on using the changeset viewer.
