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#

Data type of buffer entries

base_ptr_name: str#

Name of the buffer’s base pointer

shape: tuple[TypedSymbol | int, ...]#

Shape of the buffer’s interior region

strides: tuple[TypedSymbol | int, ...]#

The buffer’s linearization strides

property rank: int#

The buffer’s rank; the dimensionality of its index space.