Skip to content

Commit 6fa75aa

Browse files
author
jax authors
committed
Merge pull request #20322 from jakevdp:complex-plane-numpy2
PiperOrigin-RevId: 617265717
2 parents cc06836 + 9062cfb commit 6fa75aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/lax_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3405,7 +3405,6 @@ def testOnComplexPlane(self, name, dtype, kind):
34053405
+ (['q1', 'q2', 'q3', 'q4', 'ninfj', 'pinfj'] if is_cuda else [])
34063406
+ (['q1', 'q2', 'q3', 'q4'] if is_cpu and dtype == np.complex128 else [])),
34073407
sinc = ['q1', 'q2', 'q3', 'q4'],
3408-
sign = ['q1', 'q2', 'q3', 'q4', 'negj', 'posj', 'ninf', 'ninfj', 'pinf', 'pinfj'],
34093408
arcsin = ['q1', 'q2', 'q3', 'q4', 'pos', 'neg', 'posj', 'negj', 'ninf', 'pinf', 'ninfj', 'pinfj'],
34103409
arccos = ['q1', 'q2', 'q3', 'q4', 'pos', 'neg', 'posj', 'negj', 'ninf', 'pinf', 'ninfj', 'pinfj'],
34113410
arctan = ['q1', 'q2', 'q3', 'q4', 'pos', 'neg', 'posj', 'negj', 'ninf', 'pinf', 'ninfj', 'pinfj'],
@@ -3417,6 +3416,9 @@ def testOnComplexPlane(self, name, dtype, kind):
34173416
expm1 = ['q1', 'q4', 'pinf'] if is_arm_cpu and dtype != np.complex128 else [],
34183417
)
34193418

3419+
if jtu.numpy_version() < (2, 0, 0):
3420+
regions_with_inaccuracies['sign'] = ['q1', 'q2', 'q3', 'q4', 'negj', 'posj', 'ninf', 'ninfj', 'pinf', 'pinfj']
3421+
34203422
jnp_op = getattr(jnp, name)
34213423

34223424
if name == 'square':

0 commit comments

Comments
 (0)