This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / optimize / _optimize / rosen_der

function

scipy.optimize._optimize:rosen_der

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_optimize.py:393

Signature

def rosen_der(x)

Summary

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.

Examples

import numpy as np
from scipy.optimize import rosen_der
X = 0.1 * np.arange(9)
rosen_der(X)
✓
array([ -2. ,  10.6,  15.6,  13.4,   6.4,  -3. , -12.4, -19.4,  62. ])

See also

rosen
rosen_hess
rosen_hess_prod

Aliases

  • scipy.optimize.rosen_der

Referenced by