JuliaMath / JuliaMath/Interpolations.jl

Value and gradient computed simultaneously

Open
#619 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
575
Forks
117
PR merge metrics
No merged PRs in 30d

Description

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](https://discourse.julialang.org/t/image-samples-and-derivatives-for-direct-photometric-image-alignment/102214/3?u=user664303), but worth stating here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.