maxOfWith

inline fun <R> ComplexFloatArray.maxOfWith(comparator: Comparator<in R>, selector: (ComplexFloat) -> R): R
inline fun <R> ComplexDoubleArray.maxOfWith(comparator: Comparator<in R>, selector: (ComplexDouble) -> R): R

Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.

Throws

if the array is empty.