@classmethod
def FromLineNum(cls, filename, linenum):
    """
        Initialize from filename, and the next matrix after line number

        >>> qmat = QCMatrix.FromLineNum('test.out', 1)
        """
    c = cls(filename)
    cls.linenum = linenum
    c._get_next_matrix()
    return c
