FixedStepController

class cubie.integrators.FixedStepController(precision: type[float16] | type[float32] | type[float64] | dtype[float16] | dtype[float32] | dtype[float64], dt: float = None, n_states: int = 1, **kwargs)[source]

Bases: BaseStepController

Controller that enforces a constant time step.

compile_controller() ControllerCache[source]

Return a device function that always accepts with fixed step.

Returns:

Cache containing the compiled fixed-step device function.

Return type:

ControllerCache