Coordinates of a flattened finite product #
Dividing the row-major index by the column count recovers the first coordinate, and taking its remainder recovers the second coordinate.
Division by the column count recovers the first coordinate of a flattened index.
Remainder modulo the column count recovers the second coordinate of a flattened index.