runningReduce

inline fun ComplexFloatArray.runningReduce(operation: (acc: ComplexFloat, ComplexFloat) -> ComplexFloat): List<ComplexFloat>
inline fun ComplexDoubleArray.runningReduce(operation: (acc: ComplexDouble, ComplexDouble) -> ComplexDouble): List<ComplexDouble>

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.