tBuLi / kingdon

A symbolically optimized and pythonic Clifford (geometric) algebra library named after none other than William Kingdon Clifford.
https://tbuli.github.io/teahouse/
MIT License
45 stars 5 forks source link

Empty multivector problems #28

Closed tBuLi closed 1 year ago

tBuLi commented 1 year ago

Description

Empty multivectors lead to problems. E.g.

x = alg.multivector()

creates a mv with keys and values equal to an empty tuple, but the grades are considered all. This leads to problems with codegen. We need to think about whether this syntax makes sense, and how the result should behave.