apply

fun apply(array: DoubleArray, function: FunctionIfc)(source)

Element-wise application of the supplied function. The array is changed in place. Using FunctionIfc avoids autoboxing when dealing with primitive doubles.

Parameters

array

the array to apply the function on

function

the function to apply