IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
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:

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.