Repository navigation
ndimage: implement higher order spline interpolation - #4402
Merged
Merged
Conversation
grlee77
force-pushed
the
ndimage_spline_interp
branch
from
December 10, 2020 03:11
37daab9 to
e10b2a8
Compare
This was referenced Dec 12, 2020
grlee77
force-pushed
the
ndimage_spline_interp
branch
from
December 21, 2020 04:59
5e99fd9 to
19d2850
Compare
grlee77
force-pushed
the
ndimage_spline_interp
branch
from
December 21, 2020 09:12
19d2850 to
b5aa409
Compare
Contributor
|
Thanks! As for the default value of |
Contributor
|
pfnCI, test this please. |
Member
|
Jenkins CI test (for commit b5aa409, target branch master) failed with status FAILURE. |
Member
Author
|
I have changed the default order to 3 as in SciPy and updated the docstrings accordingly. Please try running the tests again (I fixed a missing argument that was due to a rebasing mistake). All interpolation tests are passing locally. |
Contributor
|
pfnCI, test this please. |
Contributor
|
Thanks! Waiting for CI pass and will be merged soon. |
Member
|
Jenkins CI test (for commit 8309690, target branch master) succeeded! |
4 tasks done
This was referenced Aug 15, 2022
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.
closes #1523
blocked by #4400 and #4401
Overview
This PR implements spline interpolation orders 2-5. Spline interpolation was substantially improved in SciPy 1.6, with all boundary modes now being handled correctly. Only the
mode='mirror'cases can be compared tested against older SciPy.To decide: How do we want to handle the order argument to these functions. Should we change the default back from None to 3 so that it matches SciPy? For now, I have left it as it was in CuPy 8.0.
Performance
I will post some benchmark results when I get a chance. This is still fast relative to SciPy, but the acceleration is worse than that seen for orders 0 and 1. I would like to see if there is a way to refactor this a bit to reduce register usage, as I suspect that is part of the reason for the performance difference.