running Reduce
inline fun ComplexFloatArray.runningReduce(operation: (acc: ComplexFloat, ComplexFloat) -> ComplexFloat): List<ComplexFloat>
Content copied to clipboard
inline fun ComplexDoubleArray.runningReduce(operation: (acc: ComplexDouble, ComplexDouble) -> ComplexDouble): List<ComplexDouble>
Content copied to clipboard
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
Parameters
operation
function that takes current accumulator value and an element, and calculates the next accumulator value.