duplicate_array_index_chains#

ivy.duplicate_array_index_chains(nest)[source]#

Group all unique index chains in a nest. This function is useful for finding all unique index chains in a nest, and then duplicating the values at those index chains for functional frameworks.

Parameters:

nest (Union[Array, NativeArray, Iterable]) – nest to get duplicate index chains for.

Returns:

list of index chains to duplicate.