Fix sampled matrix integration over dimensional axes#342
Merged
ChrisRackauckas merged 2 commits intoJul 8, 2026
Merged
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
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.
This PR should be ignored until reviewed by @ChrisRackauckas.
Summary
weight * sampleresult type instead ofeltype(data).SampledIntegralProblem(data, axis; dim = 2)with a dimensional axis.Fixes #341.
Tests
DimensionError: 0.0 and 0.5 m are not dimensionally compatibleatsrc/sampled.jl:79.GROUP=Core timeout 3600 /home/crackauc/.juliaup/bin/julia +1.12 --project=. -e 'using Pkg; Pkg.test()'Core/sampled_tests.jl: 30 passedCore/interface_tests.jl: 871 passedCore/inf_integral_tests.jl: 746 passedTesting Integrals tests passedGROUP=AD timeout 7200 /home/crackauc/.juliaup/bin/julia +1.10 --project=. -e 'using Pkg; Pkg.test()'AD/derivative_tests.jl: 2005 passed, 1176 brokenAD/nested_ad_tests.jl: 6 passedTesting Integrals tests passedRunic v1.7.0:/home/crackauc/.juliaup/bin/julia +1.12 --project=.runic -e 'using Runic; exit(Runic.main(ARGS))' -- --check .