pystencils.grids.protocols.FieldBufferSpec#
- class pystencils.grids.protocols.FieldBufferSpec(dtype, base_ptr_name, shape, strides)#
Specification for a field’s memory buffers.
- Parameters:
dtype (PsType | DynamicType)
base_ptr_name (str)
shape (tuple[TypedSymbol | int, ...])
strides (tuple[TypedSymbol | int, ...])
- dtype: PsType | DynamicType#
Data type of buffer entries
- shape: tuple[TypedSymbol | int, ...]#
Shape of the buffer’s interior region
- strides: tuple[TypedSymbol | int, ...]#
The buffer’s linearization strides