lbfgsb.sphere_grad#

lbfgsb.sphere_grad(x: ndarray[tuple[Any, ...], dtype[float64]]) ndarray[tuple[Any, ...], dtype[float64]][source]#

The gradient of the Sphere function.

Parameters:

x (array_like) – 1-D array of points at which the Sphere function is to be derivated.

Returns:

The gradient of the Rosenbrock function.

Return type:

NDArrayFloat