max Of With
inline fun <R> ComplexFloatArray.maxOfWith(comparator: Comparator<in R>, selector: (ComplexFloat) -> R): R
Content copied to clipboard
inline fun <R> ComplexDoubleArray.maxOfWith(comparator: Comparator<in R>, selector: (ComplexDouble) -> R): R
Content copied to clipboard
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.