pub(crate) fn batch_lif_run_multi<'py>(
py: Python<'py>,
n_neurons: usize,
n_steps: usize,
leak_k: i16,
gain_k: i16,
currents: PyReadonlyArray1<'py, i16>,
data_width: u32,
fraction: u32,
v_rest: i16,
v_reset: i16,
v_threshold: i16,
refractory_period: i32,
) -> PyResult<(Bound<'py, PyArray2<i32>>, Bound<'py, PyArray2<i16>>)>Expand description
Run N independent LIF neurons in parallel, each with its own constant input.
Returns (spikes: ndarray[i32, (n_neurons, n_steps)], voltages: ndarray[i16, (n_neurons, n_steps)]).