Returns the row-major base offset for row in flattened cell planes.
the flat index pointing to the start of the row.
zero-based row index.