For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
RowCoord
struct RowCoord[rank: Int]
A row's coordinates, as a non-variadic handle.
Wraps an all-dynamic Coord: the reduce axis is overwritten per tile,
which a statically typed element cannot hold.
The wrapper is not cosmetic. A Coord parameterized by a symbolic rank
expands to a variadic pack (TypeList.splat), and such a pack does not
survive substitution into a closure-type trait bound.
Parameters
- rank (
Int): The coordinate's rank.
Fields
- coord (
Coord[*#kgen.param_list.tabulate(rank, [idx: __mlir_type.index] Int64)]): The wrapped coordinates.
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methods
__init__
@implicit
def __init__(row_coords: Coord) -> Self
Builds a handle from any Coord, dropping static dims.
Args:
- row_coords (
Coord): The row's coords, static dims permitted.
write_axis
def write_axis[axis: Int](mut self, pos: Int)
Sets the reduce axis to pos, in place.
Parameters:
- axis (
Int): The reduce axis to overwrite.
Args:
- pos (
Int): The column position along the reduce axis.