get index of element in 1-dim array by N-dim coordinate
N-dim array of sizes by each dimension
N-dim array of coordinates in N-dim space
index in 1-dim array
assertEq( getIndex( [3,3], [1,1] ), 4 ); assertEq( getIndex( [4,3], [1,1] ), 5 ); assertEq( getIndex( [3,3,3], [1,1,1] ), 13 );
See Implementation
get index of element in 1-dim array by N-dim coordinate