SciPy

This is documentation for an old release of SciPy (version 0.18.0). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.optimize.rosen_der

scipy.optimize.rosen_der(x)[source]

The derivative (i.e. gradient) of the Rosenbrock function.

Parameters:

x : array_like

1-D array of points at which the derivative is to be computed.

Returns:

rosen_der : (N,) ndarray

The gradient of the Rosenbrock function at x.