def _fit_long_matrix(matrix, syn_obj, max_rows):
    """
    shorten the matrix by substituting vertical ... in the columns
    """
    mat = matrix[:max_rows - 2, :].tolist()
    mat += [[syn_obj.vdots] * matrix.shape[1]]
    mat += matrix[(-1), :].tolist()
    return mat
