api / koma.util

Package koma.util


Name Summary
IndexIterator data class IndexIterator :Iterator<IndexIterator>
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.


Name Summary
fromCollection fun fromCollection(collection:Collection<Double>):DoubleArray
fun fromCollection(collection:Collection<Int>):IntArray
Converts a collection into a primitive DoubleArray