ó
¡¼™\c           @   s   d  d l  m Z d „  Z d S(   i   (   t
   CartanTypec         C   s   t  |  ƒ j ƒ  S(   s›  Access the Cartan matrix of a specific Lie algebra

    Examples
    ========

    >>> from sympy.liealgebras.cartan_matrix import CartanMatrix
    >>> CartanMatrix("A2")
    Matrix([
    [ 2, -1],
    [-1,  2]])

    >>> CartanMatrix(['C', 3])
    Matrix([
    [ 2, -1,  0],
    [-1,  2, -1],
    [ 0, -2,  2]])

    This method works by returning the Cartan matrix
    which corresponds to Cartan type t.
    (   R    t   cartan_matrix(   t   ct(    (    s>   lib/python2.7/site-packages/sympy/liealgebras/cartan_matrix.pyt   CartanMatrix   s    N(   t   cartan_typeR    R   (    (    (    s>   lib/python2.7/site-packages/sympy/liealgebras/cartan_matrix.pyt   <module>   s   