Skip to main content

Mojo function

to_index_list

to_index_list[rank: Int, t: IntTuple](tuple: RuntimeTuple[t, element_type=element_type]) -> IndexList[rank]

Converts a RuntimeTuple to an IndexList with the same values.

Parameters:

  • โ€‹rank (Int): The rank of the resulting IndexList.
  • โ€‹t (IntTuple): The IntTuple template parameter of the RuntimeTuple.

Args:

Returns:

IndexList: An IndexList filled with the values of the RuntimeTuple.

Was this page helpful?