Tests if row and col are within the bounds of this matrix.
row
col
@nonVirtual bool isWithinBounds(int row, int col) => 0 <= row && row < rowCount && 0 <= col && col < colCount;