feat: add Symbolics extension#42
Merged
Merged
Conversation
This commit implements Symbolics.jl support for DataInterpolationsND.jl to enable ModelingToolkit (MTK) compatibility as requested in issue SciML#6. Changes: - Add DataInterpolationsNDSymbolicsExt extension in ext/ directory - Register NDInterpolation objects as symbolic functions - Implement symbolic differentiation for partial derivatives - Add comprehensive test suite for symbolic functionality - Configure Project.toml with proper extension setup The extension supports: - Symbolic evaluation: itp(x, y) with symbolic variables - Partial differentiation: ∂f/∂x, ∂f/∂y via Symbolics.derivative - Higher-order and mixed partial derivatives - Value substitution and numerical comparison Testing shows the extension works correctly: - Symbolic expressions are created properly - Derivatives match ForwardDiff results - Substitution produces correct numerical values Resolves SciML#6 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Remove try/catch block and simplify test structure. The tests now directly use Symbolics without error handling since the extension will only load when Symbolics is available. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Symbolics is now included in [extras] and [targets] test so that the Symbolics extension tests can run properly without try/catch. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
0756768 to
3c5d89b
Compare
ChrisRackauckas
approved these changes
Oct 28, 2025
Member
|
Thanks for completing this work. Is there much effort needed to support #33? |
Member
Author
|
This extension doesn't particularly care about the details of interpolation, it simply needs some type information from the interpolation object. That PR changes the type parameters, so the extension would need to be updated accordingly. |
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.
Supersedes #30