Skip to content

Commit

Permalink
Added a negative power error
Browse files Browse the repository at this point in the history
  • Loading branch information
hugohadfield committed Dec 27, 2020
1 parent efa563d commit 519a07a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clifford/numba/_multivector.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ def ga_pow(a, b):
if isinstance(a, MultiVectorType) and isinstance(b, types.Integer):
gmt_func = a.layout_type.obj.gmt_func
def impl(a, b):
if b < 0:
raise NotImplementedError('Negative powers are currently not implemented')
if b == 0:
return 1 + 0*a
op = a.value
Expand Down

0 comments on commit 519a07a

Please sign in to comment.