compute_time_grid
- compute_time_grid(t_span, t_eval, max_dt, jitter=0.05, *, unp_inner, rng=None)
Construct integration steps aligned with the evaluation grid.
- Parameters:
t_span (
ndarray|Array) – Array containing the start and end times of the integration window.t_eval (
ndarray|Array|None) – Optional monotonic array of evaluation points insidet_span.max_dt (
float) – Maximum allowed step size used to split each interval.jitter (
float|None) – Optional jitter amplitude applied to interior boundaries to avoid resonance artefacts. Set toNoneto disable.unp_inner – Array namespace (
numpyorjax.numpy) used to build the grid.rng – Optional simulation-local NumPy random generator used to sample jittered interior step boundaries.
- Return type:
Tuple[ndarray|Array,List[ndarray|Array],ndarray|Array]- Returns:
Tuple
(t_list, h_nested_list, n_list)wheret_listis the merged evaluation grid,h_nested_listcontains per-interval step sizes, andn_listrecords the number of steps taken inside each interval.