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 function
at_axis
def at_axis[axis: Int](coord: Coord[*coord.element_types], pos: Int) -> Coord[*coord.element_types]
Returns a copy of coord with the reduce axis set to pos.
Parameters:
- โaxis (
Int): The reduce axis to overwrite.
Args:
- โcoord (
Coord[*coord.element_types]): The coords to copy; elementaxismust be a dynamicInt. - โpos (
Int): The column position along the reduce axis.
Returns:
Coord[*coord.element_types]: A copy of coord with element axis set to pos.