braintools.quad.ODESolution

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_eval if it was given; otherwise the accepted step times, shape (max_steps + 1,), starting at t0 and padded after index n_steps by repeating the last accepted time.

  • ys (PyTree) – States at ts, with the structure of y0 and a leading axis of the same length as ts (padded like ts).

  • 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: True if t1 was reached within max_steps attempts 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_rejected

Alias for field number 3

n_steps

Alias for field number 2

success

Alias for field number 4

ts

Alias for field number 0

ys

Alias for field number 1