maxOf

inline fun ByteBuffer.maxOf(selector: (Byte) -> Double): Double
inline fun ShortBuffer.maxOf(selector: (Short) -> Double): Double
inline fun IntBuffer.maxOf(selector: (Int) -> Double): Double
inline fun LongBuffer.maxOf(selector: (Long) -> Double): Double
inline fun FloatBuffer.maxOf(selector: (Float) -> Double): Double
inline fun DoubleBuffer.maxOf(selector: (Double) -> Double): Double
inline fun CharBuffer.maxOf(selector: (Char) -> Double): Double

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

If any of values produced by selector function is NaN, the returned result is NaN.

Throws

if the array is empty.

inline fun <R : Comparable<R>> ByteBuffer.maxOf(selector: (Byte) -> R): R
inline fun <R : Comparable<R>> ShortBuffer.maxOf(selector: (Short) -> R): R
inline fun <R : Comparable<R>> IntBuffer.maxOf(selector: (Int) -> R): R
inline fun <R : Comparable<R>> LongBuffer.maxOf(selector: (Long) -> R): R
inline fun <R : Comparable<R>> FloatBuffer.maxOf(selector: (Float) -> R): R
inline fun <R : Comparable<R>> DoubleBuffer.maxOf(selector: (Double) -> R): R
inline fun <R : Comparable<R>> CharBuffer.maxOf(selector: (Char) -> R): R

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

Throws

if the array is empty.