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

[Draft] add single-argument kernel evaluator #541

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

lu1and10
Copy link
Member

To address issue #528, added a single-argument kernel evaluator using current polynomial coefficients.

@ahbarnett In case you want to test the coefficients sooner.
I tested by replacing evaluate_kernel((FLT)z[n], opts); with evaluate_kernel_horner((FLT)z[n], opts); in functions onedim_fseries_kernel and onedim_nuft_kernel, make test still passes.

This may be merged after 2.3 release.

@ahbarnett
Copy link
Collaborator

ahbarnett commented Aug 28, 2024 via email

Copy link
Collaborator

@DiamonDinoia DiamonDinoia left a comment

Choose a reason for hiding this comment

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

Maybe throwing an exception is not the most evil thing as the user cannot reach throw since this is internal API.

@DiamonDinoia DiamonDinoia marked this pull request as ready for review August 28, 2024 21:47
@DiamonDinoia
Copy link
Collaborator

Is this ready to merge? Can you write a test that checks that both code (even odd and this) give same result?

@mreineck
Copy link
Collaborator

This PR will almist certainly conflict with #567. If #567 is merged first (which I think is the less complicated ordering), I'll help with fixing those!

@ahbarnett
Copy link
Collaborator

ahbarnett commented Oct 17, 2024 via email

@DiamonDinoia
Copy link
Collaborator

I think now is a good time to merge this.

Copy link
Collaborator

@ahbarnett ahbarnett left a comment

Choose a reason for hiding this comment

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

Thanks, very nice.

@ahbarnett ahbarnett merged commit b684337 into flatironinstitute:master Oct 24, 2024
167 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants