dpnp.unwrap
- dpnp.unwrap(x1)[source]
Unwrap by changing deltas between values to 2*pi complement.
For full documentation refer to
numpy.unwrap
.Limitations
Input array is supported as
dpnp.ndarray
. Input array data types are limited by supported DPNP Data types.See also
dpnp.rad2deg
Convert angles from radians to degrees.
dpnp.deg2rad
Convert angles from degrees to radians.
Examples
>>> import dpnp as np >>> phase = np.linspace(0, np.pi, num=5) >>> for i in range(3, 5): >>> phase[i] += np.pi >>> out = np.unwrap(phase) >>> [i for i in out] [0.0, 0.78539816, 1.57079633, 5.49778714, 6.28318531]