Mojo function
coord_to_index_list
coord_to_index_list[*element_types: CoordLike](value: Coord[element_types]) -> IndexList[Coord[element_types].rank]
Convert a flat Coord to an IndexList.
Parameters:
- *element_types (
CoordLike): The variadic pack of element types in the Coord.
Args:
- value (
Coord): The Coord to convert.
Returns:
IndexList: An IndexList with the same rank and values as the input Coord.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!