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
x1andx2are supported as eitherdpnp.ndarrayor scalar. Parametersdtype,outandwhereare supported with their default values. Keyword argumentskwargsare 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]