84aad52d818f8313841e0015bdb2c669c0f587e6
Specifically, we must map into 0..cd[0]-1 and not some other interval. Moreover, as the "i" index cycles the most rapidly in lexicographical ordering, a simple first dimension modulus operator is sufficient. On the other hand, this code does assume lexicographical ordering of the cells which may or may not be guaranteed by the grid constructor. The Cartesian constructors observe this behaviour, but other constructors may not...
Description
Collection of utilities, solvers and other components.
Languages
C++
83%
C
15.9%
CMake
1%