Skip to content

Value and gradient computed simultaneously #619

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

Open
ojwoodford opened this issue May 2, 2025 · 0 comments
Open

Value and gradient computed simultaneously #619

ojwoodford opened this issue May 2, 2025 · 0 comments

Comments

@ojwoodford
Copy link

ojwoodford commented May 2, 2025

It seems that the only way to compute the value and the gradient of some interpolated function at a given point is to call separate methods for each. However, both these calls will look up the same interpolation knots, and duplicate computation when computing weights. Given this, if one does need both the value and gradient simultaneously (which I do), it would be preferable to have a single function that computes both.

I've mentioned this before elsewhere, but worth stating here.

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

No branches or pull requests

1 participant