Repository navigation
Preserve SLArray labels when restructuring - #220
Merged
ChrisRackauckas merged 1 commit intoAug 31, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Teach the public ArrayInterface.restructure API to rebuild immutable SLArray states with their original shape and labels. This keeps out-of-place stiff solver stages labelled after a flat linear solve. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: OpenAI Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.151.0 Agent-Model: gpt-5.6-sol Agent-Session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d
Member
Author
|
The Runic failure is a pre-existing default-branch failure, not introduced by this behavior change. Current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Add an
ArrayInterface.restructurespecialization for immutableSLArraystates so rebuilding a state from a flat linear-solve result preserves its shape and labels. Add a focused inferred regression test for the public restructuring interface.OrdinaryDiffEq commit
100fe2369ce04be7a78084eb1d599254454f7ef3, first released in OrdinaryDiffEqRosenbrock 2.6.1, changed out-of-place stiff stages fromreshapeto the publicArrayInterface.restructureAPI. The generic implementation allocates throughsimilar, which intentionally produces a mutableLArrayfor anSLArraytemplate; FastBroadcast subsequently materializes a label-lessSizedVector, causing labelled ODE right-hand sides to fail withSizedArray has no field y.Failing before / passing after
Focused command:
Before the source fix, with only the regression assertion applied:
After the fix:
The original integration regression was also reproduced before the fix:
Verification
Public API evidence and full Core group:
QA group:
Formatting and spelling:
Both exited successfully with no output.
Not verified locally
Links
🤖 Generated with Codex CLI 0.151.0 (model: gpt-5.6-sol; session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d)