For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
dyn_coord
def dyn_coord[dtype: DType, *element_types: Movable](var values: Tuple[element_types]) -> Coord[*#kgen.param_list.tabulate(len(element_types.values), [idx: __mlir_type.index] Scalar[dtype])] where TypeList.all_satisfies[comptime[Type: AnyType] Bool((eq Type, Int))]()
Create a Coord from a tuple of integers with specified dtype.
Parameters:
- dtype (
DType): The data type for the runtime integer values. - *element_types (
Movable): The types of elements in the input tuple.
Args:
- values (
Tuple[element_types]): The runtime integer values.
Returns:
Coord[*#kgen.param_list.tabulate(len(element_types.values), [idx: __mlir_type.index] Scalar[dtype])]: A Coord instance containing Scalar elements for each value.