def eigs( self ):
        origTrace, origDet = self.trace(), self.det()
        self = self.hessenberg()
        eigvals = Vec([])
        for i in range(self.rows-1,0,-1):
            while not self[i][:i].forall(iszero):
                shift = eye(i+1) * self[i][i]
                q, r = (self - shift).qr()
                self = r.mmul(q) + shift
            eigvals.append( self[i][i] )
            self = Mat( [self[r][:i] for r in range(i)] )
        eigvals.append( self[0][0] )
        assert NPOST or iszero( (abs(origDet) - abs(eigvals.prod())) / 1000.0 )
        assert NPOST or iszero( origTrace - eigvals.sum() )
        return Vec(eigvals)
Set the Format fg_color property.
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/matfunc.py/Square.eigs--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/format.py/Format.set_fg_color