ulab.numpy.carray – Return the real part of the complex argument, which can be either an ndarray, or a scalar.

ulab.numpy.carray.real(val: ulab.numpy.ndarray) ulab.numpy.ndarray
ulab.numpy.carray.imag(val: ulab.numpy.ndarray) ulab.numpy.ndarray

Return the imaginary part of the complex argument, which can be either an ndarray, or a scalar.

ulab.numpy.carray.conjugate(val: complex | ulab.numpy.ndarray) complex | ulab.numpy.ndarray

Return the conjugate of the complex argument, which can be either an ndarray, or a scalar.

ulab.numpy.carray.sort_complex(a: ulab.numpy.ndarray) ulab.numpy.ndarray

Sort a complex array using the real part first, then the imaginary part. Always returns a sorted complex array, even if the input was real.

ulab.numpy.carray.abs(a: ulab.numpy.ndarray) ulab.numpy.ndarray

Return the absolute value of complex ndarray.