bundles / scipy latest / scipy / optimize / _optimize / rosen_hess_prod
function
scipy.optimize._optimize:rosen_hess_prod
source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_optimize.py:477
Signature
def rosen_hess_prod(x, p)Summary
Product of the Hessian matrix of the Rosenbrock function with a vector.
Parameters
x: array_like1-D array of points at which the Hessian matrix is to be computed.
p: array_like1-D array, the vector to be multiplied by the Hessian matrix.
Returns
rosen_hess_prod: ndarrayThe Hessian matrix of the Rosenbrock function at
xmultiplied by the vectorp.
Examples
import numpy as np from scipy.optimize import rosen_hess_prod X = 0.1 * np.arange(9) p = 0.5 * np.arange(9) rosen_hess_prod(X, p)✓
array([ -0., 27., -10., -95., -192., -265., -278., -195., -180.])
See also
Aliases
scipy.optimize.rosen_hess_prod