JuliaDiff / FiniteDiff.jl

Fast non-allocating calculations of gradients, Jacobians, and Hessians with sparsity support
Other
241 stars 39 forks source link

scalar -> vector and vector -> scalar control flow #157

Open ArnoStrouwen opened 1 year ago

ArnoStrouwen commented 1 year ago

Currently derivatives of functions with scalar inputs and vector outputs are called gradients, and the control flow is mixed in with vector -> scalar functions. In my opinion, this is confusing and error-prone.

Additionally, for the former an in-place f! can make sense while for the latter it does not.

ChrisRackauckas commented 1 year ago

yeah that should probably just be Jacobian