api / koma.internal.default.utils / linearToNIdx

linearToNIdx

fun <T>NDArray<T>.linearToNIdx(linear:Int):IntArray

Given the 1D index of an element in the underlying storage, find the corresponding ND index. Inverse of nIdxToLinear.