multimodemodel.sum_states

Contents

multimodemodel.sum_states#

multimodemodel.sum_states(states, keep_time=None)[source]#

Sum states using optimized implementations.

See documentation of jit.sum_arr for more information.

Parameters:
  • states (Sequence[StateType]) – Sequence of states to sum over.

  • keep_time (Optional[int]) – If None, the resulting time will be the average of the timestamps of the input. If it is an integer, this will be the index of the variable within variables from which the timestep will be copied.