Changeset 42827 for trunk/psLib/src/math/psMatrix.c
- Timestamp:
- May 8, 2025, 4:49:24 PM (12 months ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.c
r26892 r42827 459 459 // (based on version by William Kahan -- see Ohana/src/libohana/doc/kahan-gji.pdf) 460 460 461 # define MAX_RANGE 1.0e7 461 # define MAX_RANGE_F64 1.0e16 462 # define MAX_RANGE_F32 1.0e8 462 463 // MAX_RANGE is used to test for ill-conditioned input matrices. For an ill-conditioned 463 464 // matrix, one or more of the pivots trends towards zero, and growth goes to infinity. Rather … … 474 475 PS_ASSERT_INT_EQUAL(a->numCols, a->numRows, false); 475 476 PS_ASSERT_VECTOR_SIZE(b, (long int)a->numCols, false); 477 478 psF32 MAX_RANGE = MAX_RANGE_F32; 476 479 477 480 // Check for non-finite entries in matrix … … 499 502 } 500 503 } 501 break; 504 MAX_RANGE = MAX_RANGE_F64; 505 break; 502 506 } 503 507 default:
Note:
See TracChangeset
for help on using the changeset viewer.
