diff --git a/clifford/pga2d.py b/clifford/pga2d.py new file mode 100644 index 00000000..af8b2ccb --- /dev/null +++ b/clifford/pga2d.py @@ -0,0 +1,8 @@ +from . import Cl + +layout, blades = Cl(2, 0, 1, firstIdx=0) +locals().update(blades) + +# for shorter reprs +layout.__name__ = 'layout' +layout.__module__ = __name__ diff --git a/docs/predefined-algebras.rst b/docs/predefined-algebras.rst index ea279ae8..2bc3c996 100644 --- a/docs/predefined-algebras.rst +++ b/docs/predefined-algebras.rst @@ -21,6 +21,9 @@ The easiest way to get started with ``clifford`` is to use one of several predef * .. module:: clifford.pga ``pga``: Projective space for G3 ``Cl(3, 0, 1)``. +* .. module:: clifford.pga2d + + ``pga2d``: Projective space for G2 ``Cl(2, 0, 1)``. * .. module:: clifford.gac ``gac``: Geometric Algebra for Conics, ``Cl(5, 3)``.