Skip to main content

Mojo struct

TileCoordinates

struct TileCoordinates

Helper struct for managing tile coordinate offsets.

This struct encapsulates corner and split coordinates used in epilogue processing and provides a clean interface for coordinate transformations.

Fields​

  • ​corner (IndexList[2]):
  • ​split (IndexList[2]):

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

Methods​

__init__​

__init__(corner: IndexList[2], split: IndexList[2]) -> Self

Initialize tile coordinates.

Args:

adjust​

adjust(self, base_coords: IndexList[2]) -> IndexList[2]

Add corner and split offsets to base coordinates.

Args:

Returns:

IndexList[2]: Adjusted coordinates with corner and split offsets applied.