Since the function and gradient evaluations occur always simultaneously, a function fg! to compute both function and gradient would be more suitable for this software (or at least supported as an option). This is especially desirable if the function and gradient evaluations share some computations.
Since the function and gradient evaluations occur always simultaneously, a function
fg!
to compute both function and gradient would be more suitable for this software (or at least supported as an option). This is especially desirable if the function and gradient evaluations share some computations.