Skip to content

Add *IntInv interpolations to SCT extension - #564

Merged
ChrisRackauckas merged 4 commits into
masterfrom
fix_SCT_for_intinv_itps
Aug 23, 2026
Merged

Add *IntInv interpolations to SCT extension#564
ChrisRackauckas merged 4 commits into
masterfrom
fix_SCT_for_intinv_itps

Conversation

@SouthEndMusic

Copy link
Copy Markdown
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the SparseConnectivityTracer integration for DataInterpolations.jl by adding tracer-aware overloads for the integral-inverse interpolation types, so Jacobian/Hessian sparsity detection can work with these interpolations.

Changes:

  • Import ConstantInterpolationIntInv and LinearInterpolationIntInv into the SCT extension module.
  • Register SCT overloads for ConstantInterpolationIntInv and LinearInterpolationIntInv with appropriate derivative-structure flags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +89 to +90
(:ConstantInterpolationIntInv, false, true),
(:LinearInterpolationIntInv, false, false),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the latest commit — updated the comment to include ConstantInterpolationIntInv alongside ConstantInterpolation and LinearInterpolation as the exceptions with a (piecewise) zero second derivative.

Comment on lines +89 to +90
(:ConstantInterpolationIntInv, false, true),
(:LinearInterpolationIntInv, false, false),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added tests for ConstantInterpolationIntInv and LinearInterpolationIntInv in test/Extensions/sparseconnectivitytracer_tests.jl. The new "Integral Inverse Interpolations" testset uses strictly-positive u data and covers Jacobian/Hessian sparsity and output-shape checks for both types (commit: Add SCT tests for ConstantInterpolationIntInv and LinearInterpolationIntInv).

visr added a commit to Deltares/Ribasim that referenced this pull request Jul 30, 2026
visr added a commit to Deltares/Ribasim that referenced this pull request Jul 30, 2026
@ChrisRackauckas
ChrisRackauckas merged commit 0eaf7fc into master Aug 23, 2026
16 of 19 checks passed
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/DataInterpolations.jl that referenced this pull request Aug 26, 2026
The prior commit correctly removed accidental [deps] entries from PR SciML#564,
but also dropped them from weakdeps/extras, breaking Pkg validation.
Restore those sections while leaving Test out of runtime deps.

Co-authored-by: Cursor <cursoragent@cursor.com>
ChrisRackauckas added a commit that referenced this pull request Aug 27, 2026
* qa: extend ExplicitImports ignore list and drop unused deps

* Keep Test and SparseConnectivityTracer in extras/weakdeps only

The prior commit correctly removed accidental [deps] entries from PR #564,
but also dropped them from weakdeps/extras, breaking Pkg validation.
Restore those sections while leaving Test out of runtime deps.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

4 participants