cunumeric.array_split#
- cunumeric.array_split(a: ndarray, indices: Union[int, tuple[int], ndarray, npt.NDArray[Any]], axis: int = 0, equal: bool = False) list[ndarray] #
Split an array into multiple sub-arrays.
Please refer to the
split
documentation. The only difference between these functions is thatarray_split
allows indices_or_sections to be an integer that does not equally divide the axis. For an array of length l that should be split into n sections, it returns l % n sub-arrays of size l//n + 1 and the rest of size l//n.See also
- Availability:
Multiple GPUs, Multiple CPUs