For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
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[Int(2)]): - βsplit (
IndexList[Int(2)]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
def __init__(corner: IndexList[Int(2)], split: IndexList[Int(2)]) -> Self
Initialize tile coordinates.
Args:
- βcorner (
IndexList[Int(2)]): Corner coordinates offset. - βsplit (
IndexList[Int(2)]): Split coordinates offset.
adjustβ
def adjust(self, base_coords: IndexList[Int(2)]) -> IndexList[Int(2)]
Add corner and split offsets to base coordinates.
Args:
- βbase_coords (
IndexList[Int(2)]): Base tile coordinates.
Returns:
IndexList[Int(2)]: Adjusted coordinates with corner and split offsets applied.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!