

def cartan_matrix(self):
    "The Cartan matrix for F_4\n\n        The Cartan matrix matrix for a Lie algebra is\n        generated by assigning an ordering to the simple\n        roots, (alpha[1], ...., alpha[l]).  Then the ijth\n        entry of the Cartan matrix is (<alpha[i],alpha[j]>).\n\n        Examples\n        ========\n\n        >>> from sympy.liealgebras.cartan_type import CartanType\n        >>> c = CartanType('A4')\n        >>> c.cartan_matrix()\n        Matrix([\n        [ 2, -1,  0,  0],\n        [-1,  2, -1,  0],\n        [ 0, -1,  2, -1],\n        [ 0,  0, -1,  2]])\n        "
    m = Matrix(4, 4, [2, (- 1), 0, 0, (- 1), 2, (- 2), 0, 0, (- 1), 2, (- 1), 0, 0, (- 1), 2])
    return self

dataset/ETHPy150Open sympy/sympy/sympy/liealgebras/type_f.py TypeF.cartan_matrix/VarMisuse@74/325 `m`->`self`