multiply#

rbc.stdlib.elementwise_functions.multiply(x1, x2)#

Calculates the product 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('double(double, double)')
... def array_api_multiply(x1, x2):
...     return array_api.multiply(x1, x2)
>>> array_api_multiply(2.0, 4.0).execute()
8.0

Array-API ‘multiply’ doc