Skip to main content
`Ctrl`+`K`

# Elementwise Scalar Optimization (`scipy.optimize.elementwise`)

This module provides a collection of functions for root finding and minimization of scalar, real-valued functions of one variable. Unlike their counterparts in the base `scipy.optimize` namespace, these functions work elementwise, enabling the solution of many related problems in an efficient, vectorized call. Furthermore, when environment variable `SCIPY_ARRAY_API=1`, these functions can accept non-NumPy, array API standard compatible arrays and perform all calculations using the corresponding array library (e.g. PyTorch, JAX, CuPy).

## Root finding

`find_root`(f, init, /, *[, args, kwargs, ...]) | 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, kwargs, ...]) | Find the minimum of a 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.