Skip to content

Commit 3110c20

Browse files
hugohadfielderic-wieser
authored andcommitted
Cleanup scalar selection in a test
1 parent 6ffc230 commit 3110c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clifford/test/test_clifford.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_inverse(self, algebra):
6060
1 / a
6161
for i in range(10):
6262
a = randomMV(layout, grades=[0, 1])
63-
denominator = float(a(1)**2-a(0)**2)
63+
denominator = (a(1)**2)[()]-(a[()]**2)
6464
if abs(denominator) > 1.e-5:
6565
a_inv = (-a(0)/denominator) + ((1./denominator) * a(1))
6666
assert abs((a * a_inv)-1.) < 1.e-11

0 commit comments

Comments
 (0)