Elementwise Scalar Optimization (scipy.optimize.elementwise)#

This module provides a collection of functions for root finding andminimization of scalar, real-valued functions of one variable. Unlike theircounterparts in the basescipy.optimize namespace, these functions workelementwise, enabling the solution of many related problems in an efficient,vectorized call. Furthermore, when environment variableSCIPY_ARRAY_API=1,these functions can accept non-NumPy, array API standard compatible arrays andperform all calculations using the corresponding array library (e.g. PyTorch,JAX, CuPy).

Root finding#

find_root(f, init, /, *[, args, tolerances, ...])

Find the root of a monotonic, real-valued function of a real variable.

bracket_root(f, xl0[, xr0, xmin, xmax, ...])

Bracket the root of a monotonic, real-valued function of a real variable.

Minimization#

find_minimum(f, init, /, *[, args, ...])

Find the minimum of an unimodal, real-valued function of a real variable.

bracket_minimum(f, xm0, *[, xl0, xr0, xmin, ...])

Bracket the minimum of a unimodal, real-valued function of a real variable.