cupynumeric.array_split#

cupynumeric.array_split(
a: ndarray,
indices: 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 that array_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.

Availability:

Multiple GPUs, Multiple CPUs