Skip to main content

Mojo function

merge_sort_recursive

merge_sort_recursive[dtype: DType, out_idx_type: DType](mut buf_keys: TileTensor[dtype, buf_keys.LayoutType, buf_keys.origin, address_space=buf_keys.address_space, linear_idx_type=buf_keys.linear_idx_type, element_size=buf_keys.element_size], mut buf_ids: TileTensor[out_idx_type, buf_ids.LayoutType, buf_ids.origin, address_space=buf_ids.address_space, linear_idx_type=buf_ids.linear_idx_type, element_size=buf_ids.element_size], start: Int, end: Int)

Recursive merge sort implementation.

Was this page helpful?