braintools.quad.ODESolution#
- class braintools.quad.ODESolution(ts, ys, n_steps, n_rejected, success)[source]#
Result of
solve_ivp().- Variables:
ts (array or Quantity) – Output times.
t_evalif it was given; otherwise the accepted step times, shape(max_steps + 1,), starting att0and padded after indexn_stepsby repeating the last accepted time.ys (PyTree) – States at
ts, with the structure ofy0and a leading axis of the same length asts(padded likets).n_steps (jax.Array) – Number of accepted steps (int scalar).
n_rejected (jax.Array) – Number of rejected step attempts (int scalar).
success (jax.Array) – Boolean scalar:
Trueift1was reached withinmax_stepsattempts without the step size collapsing.
- __init__()#
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
n_rejectedAlias for field number 3
n_stepsAlias for field number 2
successAlias for field number 4
tsAlias for field number 0
ysAlias for field number 1