positive#

rbc.stdlib.elementwise_functions.positive(x)#
Computes the numerical positive of each element x_i (i.e., y_i = +x_i) of the

input array x.

>>> from rbc.stdlib import array_api
>>> @heavydb('double[](double[])')
... def array_api_positive(x):
...     return array_api.positive(x)
>>> array_api_positive([1., -1.]).execute()
array([ 1., -1.], dtype=float32)

Array-API ‘positive’ doc