jax.numpy.sort_complex

Contents

jax.numpy.sort_complex#

jax.numpy.sort_complex(a)[source]#

Sort a complex array using the real part first, then the imaginary part.

LAX-backend implementation of numpy.sort_complex().

Original docstring below.

Parameters:

a (array_like) – Input array

Returns:

out – Always returns a sorted complex array.

Return type:

complex ndarray