bundles / scipy 1.17.1 / scipy / optimize / _numdiff / _prepare_bounds
function
scipy.optimize._numdiff:_prepare_bounds
source: /scipy/optimize/_numdiff.py:196
Signature
def _prepare_bounds(bounds, x0)Summary
Prepares new-style bounds from a two-tuple specifying the lower and upper limits for values in x0. If a value is not bound then the lower/upper bound will be expected to be -np.inf/np.inf.
Examples
_prepare_bounds([(0, 1, 2), (1, 2, np.inf)], [0.5, 1.5, 2.5])
✓Aliases
scipy.optimize._numdiff._prepare_bounds