Skip to content

Commit

Permalink
Merge pull request #365 from kliment/master
Browse files Browse the repository at this point in the history
Add 2D PGA (Cl(2,0,1))
  • Loading branch information
arsenovic authored Dec 8, 2024
2 parents 1102eba + e526291 commit 3b5f83a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clifford/pga2d.py
Original file line number Diff line number Diff line change
@@ -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__
3 changes: 3 additions & 0 deletions docs/predefined-algebras.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)``.
Expand Down

0 comments on commit 3b5f83a

Please sign in to comment.