C Primitive Types for Individual Data Points

For scalar values or small collections, the most straightforward approach is to pass and manipulate them as pure C primitive types (e.g., `int`, `float`, `double*`). All variables used inside a `nogil` block must be explicitly `cdef`'d to avoid Python object interactions.

Sources

Open the full topic