maxByOrNull

inline fun <R : Comparable<R>> ComplexFloatArray.maxByOrNull(selector: (ComplexFloat) -> R): ComplexFloat?
inline fun <R : Comparable<R>> ComplexDoubleArray.maxByOrNull(selector: (ComplexDouble) -> R): ComplexDouble?

Returns the first element yielding the largest value of the given function or null if there are no elements.