jax.numpy.unwrapΒΆ

jax.numpy.unwrap(p, discont=3.141592653589793, axis=- 1)[source]ΒΆ

Unwrap by changing deltas between values to 2*pi complement.

LAX-backend implementation of unwrap().

Original docstring below.

Unwrap radian phase p by changing absolute jumps greater than discont to their 2*pi complement along the given axis.

Parameters
  • p (array_like) – Input array.

  • discont (float, optional) – Maximum discontinuity between values, default is pi.

  • axis (int, optional) – Axis along which unwrap will operate, default is the last axis.

Returns

out – Output array.

Return type

ndarray