Skip to content
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 Chebyshev interpolation #1367

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Add Chebyshev interpolation #1367

merged 1 commit into from
Feb 10, 2025

Conversation

j2kun
Copy link
Collaborator

@j2kun j2kun commented Feb 6, 2025

This PR adds a Chebyshev interpolation routine, which is a subroutine needed for Caratheodory-Fejer approximation.

Adds a new (very lightweight) dependency: pocketfft, the fft implementation used by numpy.

@j2kun j2kun requested review from asraa and WoutLegiest February 6, 2025 01:00
Copy link
Collaborator

@WoutLegiest WoutLegiest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, cool code!
Just wondering if we could link a reference document that explain the math behind it? Or are we putting it into the paper

Notes:

- Adds pocketfft (numpy's underlying FFT lib) to workspace dependencies
- Slight improvements to Polynomial data structures
- Adds simple conversion from Chebyshev basis to monomial basis
@j2kun
Copy link
Collaborator Author

j2kun commented Feb 7, 2025

Thanks, cool code! Just wondering if we could link a reference document that explain the math behind it? Or are we putting it into the paper

Added a citation. I think the method in this PR is not novel (it's a very old and well known technique) and the main routine (coming next) is the Caratheodory-Fejer approximation which has proper citations.

@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Feb 7, 2025
@copybara-service copybara-service bot merged commit a91d91f into google:main Feb 10, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants