clifford (clifford)

The Main Module. Provides two classes, Layout and MultiVector, and several helper functions to implement the algebras.


MultiVector(layout[, value, string, dtype])

An element of the algebra

Layout(sig, bladeTupList[, firstIdx, names])

Layout stores information regarding the geometric algebra itself and the internal representation of multivectors.

ConformalLayout(*args[, layout])

A layout for a conformal algebra, which adds extra constants and helpers.


A frame of vectors


Cl([p, q, r, sig, names, firstIdx, mvClass])

Returns a Layout and basis blades for the geometric algebra Cl_p,q.

conformalize(layout[, added_sig, mvClass])

Conformalize a Geometric Algebra

grade_obj(objin[, threshold])

Returns the modal grade of a multivector

bases(layout[, mvClass, grades])

Returns a dictionary mapping basis element names to their MultiVector instances, optionally for specific grades

randomMV(layout[, min, max, grades, …])

n Random MultiVectors with given layout.


Makes repr(M) default to pretty-print.


Makes repr(M) default to eval-able representation.


Get/Set the epsilon for float comparisons.