Repository navigation
Make has_symbolic_idxs public for solver packages - #1585
Merged
ChrisRackauckas merged 1 commit intoSep 7, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Every solver package that owns an integrator call operator has to decide whether `idxs` is symbolic before it can route to `symbolic_interpolation`, since a raw dense-output interpolant only accepts integer component indices. Exposing the predicate here keeps that one decision in one place rather than duplicating it in OrdinaryDiffEq, DelayDiffEq, Sundials and ODEInterfaceDiffEq, and keeps those packages off a SciMLBase internal. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam
This was referenced Sep 7, 2026
Merged
ChrisRackauckas
marked this pull request as ready for review
September 7, 2026 05:13
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
#1581 added
symbolic_interpolationso solverpackages can resolve symbolic
idxsinintegrator(t; idxs). Every such package also hasto decide whether
idxsis symbolic before routing, since a raw dense-output interpolantonly accepts integer component indices. That predicate is one line of interface policy and
belongs next to
symbolic_interpolationrather than being duplicated in five packages orreached into as a SciMLBase internal.
This adds
SciMLBase.has_symbolic_idxs(idxs)as public, documented API. It was meant to bepart of #1581 but did not make it into the merge, and 3.52.0 is already released, so it needs
its own version.
The consumers, all currently red on
UndefVarError: has_symbolic_idxs not definedagainst3.52.0:
StochasticDiffEq needs nothing of its own:
SDEIntegratoris an alias forODEIntegrator{<:SDEAlgTypes}.Verification
Nineteen lines, no behavior change to anything existing — a new function, an
@publicentryand a
@docsentry.Docs build (
julia --project=docs docs/make.jl, which runsdoctest = trueandlinkcheck = true) exits 0; that is the check that matters here, since a public name withouta
@docsentry is a fatalmissing_docserror in this repo.The predicate is exercised end to end by the three PRs above. With SciMLBase
Pkg.developedto this branch, locally:
Runic
--checkandtyposclean on the files touched.Things a reviewer should push back on
symbolic_type(::Symbol)andsymbolic_type(::Expr)are bothScalarSymbolic(), so aSymbolorExprindex counts as symbolic here. That is deliberate — it is what makesintegrator(t; idxs = :x)work against aSymbolCache— but it means solver packages thatadopt this will start resolving
Symbolindexes that previously threw.Not verified
Nothing beyond the docs build and the three downstream suites above was run; this adds a
function and touches no existing code path.
This PR should be ignored until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code
https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam