scanMultiIndexed

inline fun <T, D : Dimension, R : Any> MultiArray<T, D>.scanMultiIndexed(initial: R, operation: (index: IntArray, acc: R, T) -> R): NDArray<R, D>

Return a flat ndarray containing successive accumulation values generated by applying operation from left to right to each element, its multi index in this dn ndarray and current accumulator value that starts with initial value.