cupy.delete#
- cupy.delete(arr, indices, axis=None)[source]#
Delete values from an array along the specified axis.
- Parameters:
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.
- Returns:
A copy of arr with values specified by indices deleted along axis.
- Return type:
Warning
This function may synchronize the device.
See also