Skip to content

Cythonized extensions

CythonizedBaseTrajData

Lightweight wrapper for a single BCLIBC_BaseTrajData point.

CythonizedBaseTrajSeq

Contiguous C buffer of BCLIBC_BaseTrajData points with fast append and interpolation.

Python-facing access lazily creates lightweight CythonizedBaseTrajData objects; internal nogil helpers work directly on the C buffer for speed.

CythonizedBaseIntegrationEngine

CythonizedBaseIntegrationEngine()

CythonizedBaseIntegrationEngine(_config)

Implements EngineProtocol

Parameters:

  • _config (BaseEngineConfig) –

    The engine configuration.

IMPORTANT

Avoid calling Python functions inside init! init is called after cinit, so any memory allocated in cinit that is not referenced in Python will be leaked if init raises an exception.

CythonizedRK4IntegrationEngine

CythonizedRK4IntegrationEngine()

Bases: py_ballisticcalc_exts.base_engine.CythonizedBaseIntegrationEngine

Cythonized RK4 (Runge-Kutta 4th order) integration engine for ballistic calculations.

CythonizedEulerIntegrationEngine

CythonizedEulerIntegrationEngine()

Bases: py_ballisticcalc_exts.base_engine.CythonizedBaseIntegrationEngine

Cythonized Euler integration engine for ballistic calculations.