Predefined Geometric AlgebrasΒΆ

clifford provides several predifined algebras,

  • g2 : 2D Euclidean
  • g3 : 3D Euclidean
  • g4 : 4D Euclidean
  • g2c : Conformal space for G2 (G3,1)
  • g3c : Conformal space for G3 (G4,1)

You can use them like so

In [1]:
from clifford import g2

g2.e1*g2.e2
Out[1]:
(1.0^e12)

The layout and blades are also available,

In [2]:
g2.layout
Out[2]:
Layout([1, 1], [(), (1,), (2,), (1, 2)], firstIdx=1, names=['', 'e1', 'e2', 'e12'])
In [3]:
g2.blades
Out[3]:
{'e1': (1^e1), 'e12': (1^e12), 'e2': (1^e2)}

Or, specifically import the blades you need for your app

In [4]:
from clifford.g2 import e1,e2,e12
e1*e2==e12
Out[4]:
True
In [5]: