-
Notifications
You must be signed in to change notification settings - Fork 18
Add support for Clenshaw-Curtis and Fejér second rule quadrature / sampling schemes #381
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
Draft
matt-graham
wants to merge
42
commits into
main
Choose a base branch
from
mmg/clenshaw-curtis-quadrature
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 38 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
99c75ad
Add Clenshaw-Curtis quadrature rule implementation
matt-graham ae28cc1
Change to inverse RFFT based implementation
matt-graham f18db35
Correct CC weights expression for even L
matt-graham 2e47ee4
Add Fejer-2 weights and refactor CC implementation to reuse
matt-graham efa2fb4
Add dimensions for CC and F2 sampling grids
matt-graham 8f2c2d9
Add CC and F2 sampling methods to numpy quadrature wrapper
matt-graham 2311a4f
Fix F2 theta positions
matt-graham 8e7259a
Separate out CC and F2 phi grid sizes
matt-graham 3462e95
Add tests for quadrature rules on known 1D integrals
matt-graham 00baa27
Link quadrature weight and ntheta defs for CC and F2 rules
matt-graham 21ed461
Simplify index to phi computation using nphi def
matt-graham 9e1f84c
Increase number of theta samples for F2 rule by one
matt-graham f5e7278
Factor out m offset 1 and pole singularity sets
matt-graham 63790b8
Factor out Gl quadrature theta only to match other rules
matt-graham a0e0d72
Match signature of DH theta only quadrature weight function to other …
matt-graham 37bac50
Use nphi_equiang function uniformly in quadrature weight implementations
matt-graham a0c2891
Refactor index to theta to use ntheta
matt-graham 530babe
Double CC and F2 scheme number of theta samples
matt-graham 1ac5fc3
Include CC and F2 in m offset 1 schemes
matt-graham aa09f7c
Correct bug in determining scheme for dealing with pole singularity
matt-graham 9366a6c
Correct bug in using MW rather than MWSS to compute nphi
matt-graham 417b374
Generalize additional implicit special casing for handling pole singu…
matt-graham 0daaeaa
Add CC and F2 to sample scheme lists in docstrings
matt-graham 7f64fd7
Include CC and F2 schemes in spherical transform tests
matt-graham f801d6c
Move array-api-extra to package rather than build dependencies
matt-graham ed9dcc5
Remove CC + F2 from tests using SSHT
matt-graham 176b82f
Further removing of CC + F2 from tests using SSHT
matt-graham 832476b
Add equiangular sampling scheme set
matt-graham 304bee5
Adjust tolerances for spherical precompute tests
matt-graham 3756e22
Handle CC and F2 schemes in precompute kernel construction
matt-graham 0be15f1
Generalize handling of poles in JAX precompute function
matt-graham bff50d3
Account for L=1 case for CC quadrature weights
matt-graham e0c447d
Add additional quadrature weights tests
matt-graham 4fbdded
Remove unneeded special case for CC rule with n_theta = 2
matt-graham f6b4145
Give quadrature test using transform more descriptive name
matt-graham 71de50f
Add further tests for quadrature rule exceptions
matt-graham e2aea88
Add tests for HEALPix quadrature weights
matt-graham b3efcf7
Add tests for Wigner kernel exceptions and n sample function
matt-graham 9049377
Relax test condition on number of samples to non-negativity
matt-graham 53573ed
Add CC and F2 sampling scheme details to docs
matt-graham 3447e48
Minor fixes to sampling scheme doc page formatting
matt-graham 87fb759
Merge branch 'main' into mmg/clenshaw-curtis-quadrature
matt-graham 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 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
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
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
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
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.
@jasonmcewen I arrived at these by trial and error as I could not see the pattern in how the values for the other schemes was derived - if there some underlying relationship here it would be good to document. It might also be worth moving this to one of modules under
s2fft.sampling