jax.numpy.sort_complex

Warning

This page was created from a pull request (#9655).

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 sort_complex().

Original docstring below.

Parameters

a (array_like) – Input array

Returns

out – Always returns a sorted complex array.

Return type

complex ndarray