dpnp.arctan2

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

Element-wise arc tangent of x1/x2 choosing the quadrant correctly.

For full documentation refer to numpy.arctan2.

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.

See also

dpnp.arctan

Trigonometric inverse tangent, element-wise.

dpnp.tan

Compute tangent element-wise.

dpnp.angle

Return 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]