This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _lib / _util / _call_callback_maybe_halt

function

scipy._lib._util:_call_callback_maybe_halt

source: build-install/usr/lib/python3.14/site-packages/scipy/_lib/_util.py:969

Signature

def _call_callback_maybe_halt(callback, res)

Summary

Call wrapped callback; return True if algorithm should stop.

Parameters

callback : callable or None

A user-provided callback wrapped with _wrap_callback

res : OptimizeResult

Information about the current iterate

Returns

halt : bool

True if minimization should stop

Aliases

  • scipy.differentiate.eim._call_callback_maybe_halt