- cupy.delete(arr, indices, axis=None)[source]#
Delete values from an array along the specified axis.
arr (cupy.ndarray) – Values are deleted from a copy of this array.
indices (slice, int or array of ints) – These indices correspond to values that will be deleted from the copy of arr. Boolean indices are treated as a mask of elements to remove.
axis (int or None) – The axis along which indices correspond to values that will be deleted. If axis is not given, arr will be flattened.
A copy of arr with values specified by indices deleted along axis.
- Return type
This function may synchronize the device.