def basic_root(self, i, j):

        n = self.n
        root = [0]*(n+1)
        root[i] = 1
        root[j] = -1
        return root
This is a method just to generate roots
dataset/ETHPy150Open sympy/sympy/sympy/liealgebras/type_a.py/TypeA.basic_root