lin2dim

Convert a linear index i = d_1 s_1 ... s_n + d_2 s_2 ... s_n + d_n-1 s_n + d_n into a multidimensional index (d_1, d_2, ..., d_n)

void
lin2dim
(
size_t length
)
(
int id
,
scope ref int[length] ids
,
const ref int[length] dims
)

Meta