cupynumeric.array_split#
- cupynumeric.array_split(
- a: ndarray,
- indices: int | tuple[int] | ndarray | npt.NDArray[Any],
- axis: int = 0,
- equal: bool = False,
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