dpnp.arctan2
- dpnp.arctan2(x1, x2, dtype=None, out=None, where=True, **kwargs)[source]
Element-wise arc tangent of
x1/x2choosing the quadrant correctly.For full documentation refer to
numpy.arctan2.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.See also
dpnp.arctanTrigonometric inverse tangent, element-wise.
dpnp.tanCompute tangent element-wise.
dpnp.angleReturn the angle of the complex argument.
Examples
>>> import dpnp as np >>> x1 = np.array([1., -1.]) >>> x2 = np.array([0., 0.]) >>> out = np.arctan2(x1, x2) >>> [i for i in out] [1.57079633, -1.57079633]