api / koma.util / IndexIterator / <init>

<init>

IndexIterator(nd:IntArray, linear:Int= 0)

An Iterator that counts indices of a given shape in row-major order, simultaneously in both array and linear form. Useful for stepping through N-dimensional data.