Open
Description
There appears to be a problem with jvp
when the v
supplied is real and the primal is complex:
using FiniteDifferences
jvp(central_fdm(5,1), abs2, (3.0 + im, 0.25))
#+RESULTS:
: 1.9999999999995874
jvp(central_fdm(5,1), abs2, (3.0 + im, 0.25 + 0im))
#+RESULTS:
: 1.4999999999999445
The correct, answer here is 1.5
. This should produce an error.