IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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; element axis must be a dynamic Int.
  • โ€‹pos (Int): The column position along the reduce axis.

Returns:

Coord[*coord.element_types]: A copy of coord with element axis set to pos.

Was this page helpful?