Closed matheusdiogenesandrade closed 8 months ago
x::Vector{Float64} -> sum(x)
This function only accepts Float64, not Dual, hence the error. You don't gain anything from such type specifications, and should probably just write x -> sum(x)
(which is sum
, but I guess your real functions are more complex).
Thanks.
Hello.
I am working in application where I have to dynamically define a set of functions, and from time to time provide their respective jacobian and hessian. So, let's take a look at the snippet.
Which dumps the following error.
Is there anyway for retrieving the jacob- and hess-ian of an anonymous function?
Thanks and regards.