ODECache

class cubie.odesystems.ODECache(dxdt_fn: Callable, observables_fn: Callable | None = None, helpers: SolverHelperCache = NOTHING, operation_counts: OperationCounts = NOTHING)[source]

Bases: CUDADispatcherCache

Cache the compiled base outputs and helper products of an ODE build.

dxdt

Compiled right-hand-side device function.

observables

Compiled observables device function.

helpers

Memoized solver-helper factories and bound members for this build. A true compile-setting change produces a fresh ODECache and therefore a fresh member map.

Type:

cubie.odesystems.solver_helpers.SolverHelperCache

operation_counts

Binary-operator counts of the dxdt and observables sources.

Type:

cubie.odesystems.solver_helpers.OperationCounts

dxdt_fn: Callable
helpers: SolverHelperCache
observables_fn: Callable | None
operation_counts: OperationCounts