Petar
Petar
> Support for complex-valued functions with real arguments was added in #583: > > ```julia > julia> using ForwardDiff > > julia> ForwardDiff.derivative(x->exp(im*x), 1.0) > -0.8414709848078965 + 0.5403023058681398im > ```...
e.g. ```julia julia> ForwardDiff.gradient(x->exp(im * x[1]+x[2]), [3.0,2.0]) ERROR: DimensionMismatch: gradient(f, x) expects that f(x) is a real number. Perhaps you meant jacobian(f, x)? ```
It would be nice if rather than being distributed across a few tutorials and GitHub issues, that the complex support was folded into the library itself. As it stands I'm...
I'll try have a look at implementing the changes myself, and will open a pull request if I succeed
So digging a bit further, the main issue is that the current implementation only makes sense for holomorphic complex functions, since otherwise one has to consider wirtinger derivatives (which would...
Definitely not "working perfect", it works but there is no dark icon making it stick out like a sore thumb