coalesce_nested_tuple
coalesce_nested_tuple[t: IntTuple, out_t: IntTuple = _int_tuple_product_flatten[t]()](tuple: RuntimeTuple[t, element_type=tuple.element_type]) -> RuntimeTuple[out_t]
Coalesces a nested RuntimeTuple into a single-level RuntimeTuple, by multiplying all the values together.
Parameters:
- t (
IntTuple): The underlying Compile-time IntTuple backing the RuntimeTuple. - out_t (
IntTuple): The flattened Compile-time IntTuple.
Args:
- tuple (
RuntimeTuple): The RuntimeTuple to convert.
Returns:
RuntimeTuple: A new IntTuple containing the products of each top level tuple, in a flat structure.