From 7b163aea7ed7af4d7ddf12a5af02136383d8628f Mon Sep 17 00:00:00 2001 From: Kliment Yanev Date: Sun, 4 Oct 2020 23:02:09 +0200 Subject: [PATCH 1/2] Add 2D PGA (Cl(2,0,1)) --- clifford/pga2d.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 clifford/pga2d.py 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__ From e526291fb8220c6a5740cd5deb4ec17badef5153 Mon Sep 17 00:00:00 2001 From: Kliment Yanev Date: Mon, 5 Oct 2020 08:30:49 +0200 Subject: [PATCH 2/2] Add pga2d module to predefined algebras list --- docs/predefined-algebras.rst | 3 +++ 1 file changed, 3 insertions(+) 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)``.