Commit cac9358
Fix gelss rcond parameter for MKL compatibility
Use rcond=-1.0 (machine precision) instead of 0.0 in gelss calls.
MKL interprets rcond=0.0 as "use all singular values" which causes
numerical instability for rank-deficient systems, while NETLIB
treats it as machine precision. Using -1.0 explicitly requests
machine precision and works correctly with both implementations.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 897acf5 commit cac9358
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| |||
0 commit comments