Commit 1450f32
committed
Reduce H/S re-application frequency in PPCG block subspace
The Rayleigh-Ritz rotation already keeps hpsi_/spsi_ consistent with the
rotated psi up to rounding, so re-applying H/S exactly every iteration is
redundant. Re-apply every rr_step_ iterations to reset the accumulated
rounding drift instead, removing one full-block H/S application on most
iterations (~1.5x wall-time speedup).1 parent 4d3889a commit 1450f32
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
1640 | | - | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1641 | 1648 | | |
1642 | 1649 | | |
1643 | 1650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
0 commit comments