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

bundles / scipy latest / scipy / optimize / _optimize / rosen_hess

function

scipy.optimize._optimize:rosen_hess

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

Signature

def rosen_hess(x)

Summary

The Hessian matrix of the Rosenbrock function.

Parameters

x : array_like

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

Returns

rosen_hess : ndarray

The Hessian matrix of the Rosenbrock function at x.

Examples

import numpy as np
from scipy.optimize import rosen_hess
X = 0.1 * np.arange(4)
rosen_hess(X)
✓
array([[-38.,   0.,   0.,   0.],
       [  0., 134., -40.,   0.],
       [  0., -40., 130., -80.],
       [  0.,   0., -80., 200.]])

See also

rosen
rosen_der
rosen_hess_prod

Aliases

  • scipy.optimize.rosen_hess

Referenced by