CupyBackend.subtract#

CupyBackend.subtract(*args, **kwargs)#

Element-wise subtraction of arrays.

Parameters:
arr1BackendArray

The minuend array.

arr2BackendArray

The subtrahend array.

outBackendArray, optional

Output array to write the result to. Returns a new array by default.

Returns:
BackendArray

Element-wise difference of the input arrays.