Skip to content

feat: batch_rhs (multi-RHS MatMatSolve) + adaptive_sweep#5

Merged
HunterSpence merged 2 commits into
mainfrom
feat/v2-batch-adaptive
Jul 14, 2026
Merged

feat: batch_rhs (multi-RHS MatMatSolve) + adaptive_sweep#5
HunterSpence merged 2 commits into
mainfrom
feat/v2-batch-adaptive

Conversation

@HunterSpence

Copy link
Copy Markdown
Owner

Two opt-in solver_settings features, validated end-to-end (bench/V2-RESULTS-2026-07-14.md):

  • batch_rhs: all excitations solved in one MatMatSolve per frequency — exact (max |dS| 1.7e-15 vs sequential at 2.26M DOFs).
  • adaptive_sweep: error-verified frequency sampling + spline interpolation of S-params — solved 6/22 frequencies at tol 1e-4, delivered 8.7e-08 vs the full stock-LU sweep.

Headline at 2.26M DOFs / Nf=22 / 3 antennas / 8 ranks, same box: stock LU 1,473 s / 19.6 GB → LDLT+batch+adaptive 285 s / 11.6 GB (5.2×); fp32 stack + adaptive = 843 s / 5.9 GB (0.30×). Cableport regression PASS; defaults unchanged (both features off unless requested).

🤖 Generated with Claude Code

Clawrence and others added 2 commits July 14, 2026 10:47
batch_rhs: per frequency, assemble all excitations' RHS and apply the
stored factorization in one MatMatSolve (BLAS3) instead of one triangular
solve per antenna — measured 2.9-6.2x on the solve phase standalone.
Direct preonly solves only; auto-disabled under sweep_mode/iterative.

adaptive_sweep: error-controlled frequency sampling — seed solves, greedy
largest-gap refinement with per-solve prediction verification (2
consecutive under tol ends the sweep), cubic-spline interpolation of the
remaining S rows. S-parameters only; skipped frequencies store no fields.
Worst case degrades to solving all frequencies, never to wrong answers.

Both opt-in via solver_settings; default behavior unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@HunterSpence
HunterSpence merged commit b58584f into main Jul 14, 2026
2 checks passed
@HunterSpence
HunterSpence deleted the feat/v2-batch-adaptive branch July 14, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant