{ } Raw JSON

bundles / scipy latest / scipy / integrate / _ivp / ivp / find_active_events

function

scipy.integrate._ivp.ivp:find_active_events

source: /scipy/integrate/_ivp/ivp.py :134

Signature

def   find_active_events ( g g_new direction )

Summary

Find which event occurred during an integration step.

Parameters

g, g_new : array_like, shape (n_events,)

Values of event functions at a current and next points.

direction : ndarray, shape (n_events,)

Event "direction" according to the definition in solve_ivp.

Returns

active_events : ndarray

Indices of events which occurred during the step.

Aliases

  • scipy.integrate._ivp.ivp.find_active_events