brainpy.math.event_info#

brainpy.math.event_info(events)[source]#

Collect event information, including event indices, and event number.

This function supports JAX transformations, including jit(), vmap() and pmap().

Parameters:

events (jnp.ndarray) – The events.

Returns:

res – A tuple with two elements, denoting the event indices and the event number.

Return type:

tuple