From 5b1ea67b781e23388958dbc8e08332894a7b1c56 Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Fri, 2 Feb 2024 19:30:41 +0100 Subject: [PATCH] notes --- src/hapsira/core/math/ivp/_solve.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/hapsira/core/math/ivp/_solve.py b/src/hapsira/core/math/ivp/_solve.py index 247190ff9..2ce02500f 100644 --- a/src/hapsira/core/math/ivp/_solve.py +++ b/src/hapsira/core/math/ivp/_solve.py @@ -184,6 +184,20 @@ def solve_ivp( ts = [t0] interpolants = [] + _ = """ + Event: + - impl_hf (callable) -> compiled tuple + - impl_dense_hf (callable) -> compiled tuple + - terminal (const) -> input array + - direction (const) -> input array + - is_active + - g_old + - g_new + - last_t -> output array + N events -> compiled const int? + for-loop??? + """ + terminals = np.array([event.terminal for event in events]) if len(events) > 0: