running Reduce Indexed
inline fun ComplexFloatArray.runningReduceIndexed(operation: (index: Int, acc: ComplexFloat, ComplexFloat) -> ComplexFloat): List<ComplexFloat>
Content copied to clipboard
inline fun ComplexDoubleArray.runningReduceIndexed(operation: (index: Int, 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, its index in the original array and current accumulator value that starts with the first element of this array.
Parameters
operation
function that takes the index of an element, current accumulator value and the element itself, and calculates the next accumulator value.