api / koma.internal.default.utils / nIdxToLinear

nIdxToLinear

fun <T>NDArray<T>.nIdxToLinear(indices:IntArray):Int

Given a ND index into this array, find the corresponding 1D index in the raw underlying 1D storage array.