SystemSizes

class cubie.odesystems.SystemSizes(states: int, observables: int, swept_parameters: int, drivers: int, driver_derivatives: int)[source]

Bases: object

Store counts for each component category in an ODE system.

Parameters:
  • states (int) – Number of state variables in the system.

  • observables (int) – Number of observable variables in the system.

  • swept_parameters (int) – Number of swept parameters.

  • drivers (int) – Drivers-buffer length: drivers plus driver derivatives read.

  • driver_derivatives (int) – Number of driver derivatives the equations read; they sit in the drivers buffer after the drivers.

Notes

This data class is passed to CUDA kernels so they can size device buffers and shared-memory structures correctly.

driver_derivatives: int
drivers: int
observables: int
classmethod of_layout(layout: SystemLayout) → SystemSizes[source]

Return the sizes of every buffer in layout.

states: int
swept_parameters: int