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

Codegen fails for composite operators when numba=True. #13

Closed tBuLi closed 1 year ago

tBuLi commented 2 years ago

When numba is used, codegen fails for operations that use other operators. For example, inversion requires the geometric product. Because numba is already applied in codegen_gp, it's reuse in the computation of the inverse fails. The fix is to delay the application of numbajit to outside of the codegen procedure.