pub(crate) fn py_glif_simulate<'py>(
py: Python<'py>,
v0: f64,
theta0: f64,
theta_inf: f64,
i_asc1_0: f64,
i_asc2_0: f64,
v_rest: f64,
v_reset: f64,
tau_m: f64,
tau_theta: f64,
tau_asc1: f64,
tau_asc2: f64,
a_theta: f64,
delta_theta: f64,
r_asc1: f64,
r_asc2: f64,
resistance: f64,
dt: f64,
n_steps: usize,
current: f64,
) -> (Bound<'py, PyArray1<f64>>, i64, f64, f64, f64, f64)Expand description
Parity contract with
sc_neurocore.neurons.models.glif.GLIFNeuron.simulate: for the same
parameters and constant input the returned v trace, total spike count, and
final (v, theta, i_asc1, i_asc2) state are bit-identical to the Python RK4
reference. The Allen GLIF5 model has a purely linear right-hand side (no
transcendental functions), so every RK4 stage is exact arithmetic and the
trace reproduces to the last bit across Rust/Julia/Go (Mojo FMA-fuses,
validated non-amplifying).