scanIndexed

@JvmName(name = "scanD1Indexed")
inline fun <T, R : Any> MultiArray<T, D1>.scanIndexed(initial: R, operation: (index: Int, acc: R, T) -> R): D1Array<R>

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