Repository navigation
Add a non-mutating exponential - #296
Conversation
Independent review (Devin CLI 3000.11.3, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium): MERGE, risk low. Full reviewVERDICT: MERGE The change is one line, Blocking findingsNone. Non-blocking findings
What I ranAll runs are confirmed. The
What I did not verify
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (review), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
PR: #296 Reviewed head: 462afa2 Risk assessment
Review reportVERDICT: MERGE Riskmedium-low (ML7: additive exported API, documented and tested; existing calls and defaults unchanged) Blocking findingsNone.
Non-blocking findingsNone introduced by this diff. No tests were deleted, skipped or weakened; the new accuracy assertions use the independent What I ranAI reviewer: codex-cli 0.164.0, model gpt-6.1-sol; local session 01a1d14f-cf69-7022-93e7-d4f3a12ce23b (no session URL). Independent risk was recorded before runtime checks; no author rating or prior review was read. All Julia checks used an isolated copy of the head in
What I did not verifyQA, CUDA hardware, other Julia versions/platforms, documentation deployment, or CI logs. CI status is supplied by the review job. PR body, comments, reviews and author claims were not inspected. AUTHOR_GRADE: {"task":"feature","score":5,"difficulty":1,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"Focused documented non-mutating wrapper; Core passes and independent analytic, derivative, aliasing and forwarding probes support correctness. The exploratory JLArray error also reproduces on origin/master."} Head link: 462afa2 🤖 Posted by an AI agent — harness: codex-cli 0.164.0 · model: gpt-6.1-sol |
Adds
exponential(A, [method, [cache]]), the non-mutating counterpart ofexponential!: it exponentiates a copy ofAand leavesAunchanged, including for immutable matrices.#125 asked for this after the old
exp_genericoverwrote its input;exp_generichas since been removed, and callers still writeexponential!(copy(A)), as this package's own tests do. The optional arguments go straight toexponential!, so every method and a preallocated cache work as before.The new testset checks the default,
ExpMethodGeneric, andExpMethodHigham2005with a cache againstexp, plus anSMatrix, and thatAis untouched; Core passes on 1.10 and QA, including the docstring and docs-rendering checks for the new export, on 1.12.Fixes #125.
AI Disclosure: Claude assisted with this change.