warp.tile_view#

warp.tile_view(
t: Tile[Any, tuple[int, ...]],
offset: tuple,
shape: tuple[int, ...],
) Tile[Any, tuple[int, ...]]#
  • Kernel

Extract a view of a tile.

offset may contain integer coordinates, in which case shape gives the returned tile shape. offset may also contain slice objects, in which case the returned shape is inferred from the slice bounds and shape must not be specified.

Parameters:
  • t – Input tile to extract a subrange from

  • offset – Integer offsets or slices in the source tile

  • shape – Shape of the returned view for integer-only offsets

Returns:

A tile view with dimensions given by shape, the remaining source tile dimensions, or the inferred slice extents.