Compute gradient as a numeric vector
gradient.RdConvenience function to compute the gradient of a loss function at the current parameter values.
gradient.RdConvenience function to compute the gradient of a loss function at the current parameter values.