Ndarray.IndexingA module housing functions for creating and manipulating indices and slices for working with Zarr arrays.
val slice_of_coords : int list list -> index listslice_of_coords c takes a list of array coordinates and returns a slice corresponding to the coordinates. Elements of each slice variant are sorted in increasing order.
val coords_of_slice : index list -> int list -> int list listcoords_of_slice s shp returns an array of coordinates given a slice s and array shape shp.
cartesian_prod ll returns a cartesian product of the elements of list ll. It is mainly used to generate a C-order of chunk indices in a regular Zarr array grid.
val slice_shape : index list -> int list -> int listslice_shape s shp returns the shape of slice s within an array of shape shp.