dpnp.reciprocal

dpnp.reciprocal(x1, **kwargs)[source]

Return the reciprocal of the argument, element-wise.

For full documentation refer to numpy.reciprocal.

Limitations

Input array is supported as dpnp.ndarray. Keyword arguments kwargs are currently unsupported. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

Examples

>>> import dpnp as np
>>> x = np.array([1, 2., 3.33])
>>> out = np.reciprocal(x)
>>> [i for i in out]
[1.0, 0.5, 0.3003003]