cuda.tile.Slice#

class cuda.tile.Slice(start, length, /)#

A start + length index for array dimensions.

Used as a dense-dimension entry in load_advanced_indexing() and store_advanced_indexing(). start is an integer giving the element-space start offset along this dimension; length is the tile size, and must be a power of two and must be a compile-time constant at the load_advanced_indexing()/store_advanced_indexing() call site.

Parameters:
  • start – Integer element-space start offset.

  • length – Length in elements.

__init__(start, length, /)#