dpnp.divide

dpnp.divide(x1, x2, dtype=None, out=None, where=True, **kwargs)[source]

Divide arguments element-wise.

For full documentation refer to numpy.divide.

Limitations

Parameters x1 and x2 are supported as either dpnp.ndarray or scalar. Parameters dtype, out and where are supported with their default values. Keyword arguments kwargs are currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

Examples

>>> import dpnp as np
>>> result = np.divide(np.array([1, -2, 6, -9]), np.array([-2, -2, -2, -2]))
>>> [x for x in result]
[-0.5, 1.0, -3.0, 4.5]