-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add integrand interface #497
Merged
Merged
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
57ba954
add integrand interface
lxvm 21b7895
add InplaceBatchIntegrand
lxvm 6a2038a
format and include
lxvm 3f77759
make the IntegralFunctions
lxvm f56d654
canonicalize
ChrisRackauckas e3ee453
Remove error checking on function definition of batch integral
ChrisRackauckas 318e79f
add error test on incorrect integral function dispatches
ChrisRackauckas 783b88e
argument amounts testing
ChrisRackauckas fcc7edb
some better utils checks
ChrisRackauckas 5a37040
apply format
lxvm b02e470
fix integralfunction iip
lxvm 95bdb1d
rename integrand_prototype to integral_prototype
lxvm 5675e6f
Update test/function_building_error_messages.jl
ChrisRackauckas 774e4be
fix typos
ChrisRackauckas bbe691b
revert naming to integrand_prototype
lxvm c0f4062
wrap integrand with IntegralFunction in IntegralProblem
lxvm 740576a
make integral functions callable
lxvm 3f7d1fb
simplify IntegralProblem definition
lxvm 0deeefb
update docstrings
lxvm e27965d
apply format
lxvm 5be7d7a
remove output_prototype
lxvm 8ebfe42
add deprecation method
lxvm e6a0547
Update src/problems/basic_problems.jl
ChrisRackauckas a3a09d4
Merge branch 'master' into integrands
ChrisRackauckas 619ac07
Update test/function_building_error_messages.jl
ChrisRackauckas 83f933d
Update function_building_error_messages.jl
ChrisRackauckas 7740dd4
fix default batch and dispatch
lxvm a6fd63a
Change version just to run tests
ChrisRackauckas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can have a deprecation path where if
nout
andbatch
are supplied we throw a warning and just define the prototypes asArray
s appropriately sizedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks for bringing this up. While implementing it I realized that the
BatchIntegralFunction
can let the user pass a two-argument out-of-place form and a 3-argument in-place form, which was allowed before and would matchIntegralFunction
. Then I'll remove theoutput_prototype
field, since we can still query the output type of an out-of-placeBatchIntegralFunction
by calling the function on an empty vector of input points. The details of allocating anoutput_prototype
may differ across libraries, but we have a mechanism to get the output type for both iip and oop forms, so this buffer can be correctly allocated by the solver, and solves our previous issue.