These algebras are generated by the ganja.js code generator and provide a clean, low threshold implementation of a range of geometric algebras. Each file contains a class implementing the algebra (using flat storage), overloaded operators for all common GA operators, and some simple numerical examples.
| sig | filename | name |
|---|---|---|
| 0,1 | c.cpp | complex numbers |
| 1,0 | hyperbolic.cpp | hyperbolic numbers |
| 0,0,1 | dual.cpp | dual numbers |
| 2,0 | r2.cpp | 2D Vectors |
| 3,0 | r3.cpp | 3D Vectors |
| 1,1 | mink.cpp | Minkowski |
| 0,2 | quat.cpp | Quaternion |
| 3,1 | spacetime.cpp | Spacetime |
| 4,1 | cga.cpp | Conformal Geometric Algebra |
| 3,0,1 | pga3d.cpp | Projective Geometric Algebra |