Repository navigation
Commit 28e74de
committed
[FIX] ASR: make nonlinear_eigenspace reproducible
nonlinear_eigenspace drew its optimization starting point from an unseeded
module-level Generator, so the riemann ASR path produced slightly different
results on every call. The starting point only affects convergence, not the
resulting eigenspace, so seed it with a fixed value. This makes the riemann
ASR output reproducible run-to-run and stabilizes the incremental-vs-bulk
equivalence check in test_asr_class.
Adds a regression test asserting repeated calls return identical results.1 parent db7ae31 commit 28e74de
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
497 | 495 | | |
498 | 496 | | |
499 | 497 | | |
500 | | - | |
501 | | - | |
502 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
503 | 501 | | |
504 | 502 | | |
505 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
8 | 19 | | |
9 | 20 | | |
10 | 21 | | |
| |||
0 commit comments