def get_pyramid_index(row, col):
    """Get a cell index from the pyramid array
    row 0 = top row
    col 0 = left-most column
    """
    row_offset = (row * (row + 1)) / 2
    index = row_offset + col
    return index