subtract#
- rbc.stdlib.elementwise_functions.subtract(x1, x2)#
Calculates the difference for each element x1_i of the input array x1 with the respective element x2_i of the input array x2
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('int64(int64, int64)') ... def array_api_subtract(x1, x2): ... return array_api.subtract(x1, x2) >>> array_api_subtract(5, 3).execute() 2