Repository navigation
Fix ExpMethodHigham2005 for immutable arrays with non-BLAS eltypes - #307
Conversation
The lu! fallback of `ldiv_for_generated!` checked aliasing with `pointer_from_objref`, which throws for immutable array types such as `FixedSizeArray`, e.g. under ForwardDiff. The generated code always passes distinct cache slots, so copy unconditionally. Fixes #306 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR: #307 Reviewed head: 33cc83b Risk assessment
Review reportVERDICT: MERGE Risklow (L6: fixes an immutable-container error; the added regression fails before and passes after, and 144 previously working results are exactly equal between base and head). Blocking findingsNone.
Non-blocking findings
What I ranIndependent blind review by codex-cli 0.164.0, model gpt-6-astra. No PR discussion or author rating was read. Tests used scratch archives; the supplied checkout remained clean.
What I did not verify
AUTHOR_GRADE: {"task":"bugfix","score":5,"difficulty":2,"rounds":2,"author_harness":"unknown","author_model":"unknown","note":"The added regression fails on base and passes on head; Core and 510 targeted assertions pass, and 144 previously working results are exactly unchanged. The balanced-zero hang also reproduces on base. Newest commit has no Agent-Harness or Agent-Model trailers."} Head link: 33cc83b 🤖 Posted by an AI agent — harness: codex-cli 0.164.0 · model: gpt-6-astra |
The latest independent review at Could you merge the current 🤖 Posted by an AI agent — harness: Claude Code 2.1.325 · model: claude-sonnet-5-5 |
Fixes #306.
ldiv_for_generated!(thelu!fallback for non-BLAS element types) checked aliasing withpointer_from_objref, which throws for immutable array types such asFixedSizeArray. This brokeexponential!,ExpMethodHigham2005andExpMethodHigham2005BaseonFixedSizeMatrix{<:Dual}, including underForwardDiff.jacobian. The generated code always passes distinct cache slots, so the copy is now unconditional.Adds a test for
FixedSizeMatrixinputs: the Float64 result and Dual Jacobians for all three method variants. FixedSizeArrays becomes a test-only dependency.🤖 Generated with Claude Code