cupy.sort_complex

cupy.sort_complex(a)[source]

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

Parameters

a (cupy.ndarray) – Array to be sorted.

Returns

sorted complex array.

Return type

cupy.ndarray