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

bundles / scipy latest / scipy / optimize / _hessian_update_strategy / HessianUpdateStrategy / initialize

function

scipy.optimize._hessian_update_strategy:HessianUpdateStrategy.initialize

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

Signature

def initialize(self, n, approx_type)

Summary

Initialize internal matrix.

Extended Summary

Allocate internal memory for storing and updating the Hessian or its inverse.

Parameters

n : int

Problem dimension.

approx_type : {'hess', 'inv_hess'}

Selects either the Hessian or the inverse Hessian. When set to 'hess' the Hessian will be stored and updated. When set to 'inv_hess' its inverse will be used instead.

Aliases

  • scipy.optimize.HessianUpdateStrategy.initialize