ode_ssprk33_step

Contents

ode_ssprk33_step#

class braintools.quad.ode_ssprk33_step(f, y, t, *args, **kwargs)#

Strong-stability-preserving RK(3,3) (Shu–Osher) step.

Parameters:
  • f (Callable[[PyTree, float | Quantity, ...], PyTree]) – Right-hand side function f(y, t, *args) -> PyTree.

  • y (PyTree) – Current state at time t.

  • t (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Current time.

  • *args – Additional positional arguments forwarded to f.

Returns:

The updated state after one SSPRK(3,3) step.

Return type:

PyTree