pystencils.grids.protocols.IterationLimits

pystencils.grids.protocols.IterationLimits#

class pystencils.grids.protocols.IterationLimits(bounds, loop_order)#

Kernel iteration limits prescribed by a field.

Parameters:
bounds: tuple[int | TypedSymbol, ...]#

Iteration bounds for each dimension. Lower bound is implicitly 0.

loop_order: tuple[int, ...]#

Ideal loop order for iterating this field, with coordinates ordered slowest-to-fastest.

property rank: int#

Rank (dimensionality) of the iteration space.