Skip to contents

Solve ODE forward in time. This is the main integration function that matches scTour's odeint behavior.

Usage

odeint(func, z0, t, method = "euler", options = list())

Arguments

func

ODE function (nn_module with forward(t, z) method)

z0

Initial state tensor

t

Time points tensor (must be sorted)

method

Integration method: "euler" (default, matches scTour) or "rk4"

options

List with optional step_size

Value

Tensor of states at each time point (n_times x n_latent)

Examples

if (FALSE) { # \dontrun{
states <- odeint(ode_func, z0, t, method = "euler")
} # }