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 the root of a monotonic, real-valued function of a real variable. |
| Bracket the root of a monotonic, real-valued function of a real variable. |
Minimization#
| Find the minimum of an unimodal, real-valued function of a real variable. |
| Bracket the minimum of a unimodal, real-valued function of a real variable. |