ForwardDiff.jl icon indicating copy to clipboard operation
ForwardDiff.jl copied to clipboard

Simple format for value + derivative

Open simonbyrne opened this issue 6 years ago • 2 comments

It would be great to be able to do something like

val, drv = ForwardDiff.value_derivative(f, x)

simonbyrne avatar Feb 19 '19 17:02 simonbyrne

also a simple Newton solver would be handy as well

simonbyrne avatar Feb 19 '19 18:02 simonbyrne

There's several (simple) ways of constructing the val, drv = ... syntax yourself. But for me, this is more about performance rather than nice syntax, see #401. The value is anyways calculated, so please return it as well, without any overhead.

asprionj avatar Apr 12 '19 09:04 asprionj