@@ -409,7 +409,7 @@ def func(l: Array, r: Union[Scalar, Array]) -> Array:
409409
410410 def func (l : Array , r : Union [Scalar , Array ]) -> Array :
411411 locals_ = {}
412- locals_ [left_sym ] = ah .asarray (l , copy = True ) # prevents mutating l
412+ locals_ [left_sym ] = xp .asarray (l , copy = True ) # prevents mutating l
413413 locals_ [right_sym ] = r
414414 exec (expr , locals_ )
415415 return locals_ [left_sym ]
@@ -659,7 +659,7 @@ def test_bitwise_left_shift(ctx, data):
659659 if ctx .right_is_scalar :
660660 assume (right >= 0 )
661661 else :
662- assume (not ah .any (ah .isnegative (right )))
662+ assume (not xp .any (ah .isnegative (right )))
663663
664664 res = ctx .func (left , right )
665665
@@ -718,7 +718,7 @@ def test_bitwise_right_shift(ctx, data):
718718 if ctx .right_is_scalar :
719719 assume (right >= 0 )
720720 else :
721- assume (not ah .any (ah .isnegative (right )))
721+ assume (not xp .any (ah .isnegative (right )))
722722
723723 res = ctx .func (left , right )
724724
@@ -851,13 +851,13 @@ def test_floor(x):
851851@given (data = st .data ())
852852def test_floor_divide (ctx , data ):
853853 left = data .draw (
854- ctx .left_strat .filter (lambda x : not ah .any (x == 0 )), label = ctx .left_sym
854+ ctx .left_strat .filter (lambda x : not xp .any (x == 0 )), label = ctx .left_sym
855855 )
856856 right = data .draw (ctx .right_strat , label = ctx .right_sym )
857857 if ctx .right_is_scalar :
858858 assume (right != 0 )
859859 else :
860- assume (not ah .any (right == 0 ))
860+ assume (not xp .any (right == 0 ))
861861
862862 res = ctx .func (left , right )
863863
@@ -908,7 +908,7 @@ def test_greater_equal(ctx, data):
908908
909909@given (xps .arrays (dtype = xps .numeric_dtypes (), shape = hh .shapes ()))
910910def test_isfinite (x ):
911- out = ah .isfinite (x )
911+ out = xp .isfinite (x )
912912 ph .assert_dtype ("isfinite" , x .dtype , out .dtype , xp .bool )
913913 ph .assert_shape ("isfinite" , out .shape , x .shape )
914914 unary_assert_against_refimpl ("isfinite" , x , out , math .isfinite , res_stype = bool )
@@ -924,7 +924,7 @@ def test_isinf(x):
924924
925925@given (xps .arrays (dtype = xps .numeric_dtypes (), shape = hh .shapes ()))
926926def test_isnan (x ):
927- out = ah .isnan (x )
927+ out = xp .isnan (x )
928928 ph .assert_dtype ("isnan" , x .dtype , out .dtype , xp .bool )
929929 ph .assert_shape ("isnan" , out .shape , x .shape )
930930 unary_assert_against_refimpl ("isnan" , x , out , math .isnan , res_stype = bool )
@@ -1024,7 +1024,7 @@ def test_logaddexp(x1, x2):
10241024
10251025@given (* hh .two_mutual_arrays ([xp .bool ]))
10261026def test_logical_and (x1 , x2 ):
1027- out = ah .logical_and (x1 , x2 )
1027+ out = xp .logical_and (x1 , x2 )
10281028 ph .assert_dtype ("logical_and" , [x1 .dtype , x2 .dtype ], out .dtype )
10291029 ph .assert_result_shape ("logical_and" , [x1 .shape , x2 .shape ], out .shape )
10301030 binary_assert_against_refimpl (
@@ -1034,7 +1034,7 @@ def test_logical_and(x1, x2):
10341034
10351035@given (xps .arrays (dtype = xp .bool , shape = hh .shapes ()))
10361036def test_logical_not (x ):
1037- out = ah .logical_not (x )
1037+ out = xp .logical_not (x )
10381038 ph .assert_dtype ("logical_not" , x .dtype , out .dtype )
10391039 ph .assert_shape ("logical_not" , out .shape , x .shape )
10401040 unary_assert_against_refimpl (
@@ -1044,7 +1044,7 @@ def test_logical_not(x):
10441044
10451045@given (* hh .two_mutual_arrays ([xp .bool ]))
10461046def test_logical_or (x1 , x2 ):
1047- out = ah .logical_or (x1 , x2 )
1047+ out = xp .logical_or (x1 , x2 )
10481048 ph .assert_dtype ("logical_or" , [x1 .dtype , x2 .dtype ], out .dtype )
10491049 ph .assert_result_shape ("logical_or" , [x1 .shape , x2 .shape ], out .shape )
10501050 binary_assert_against_refimpl (
@@ -1157,7 +1157,7 @@ def test_remainder(ctx, data):
11571157 if ctx .right_is_scalar :
11581158 assume (right != 0 )
11591159 else :
1160- assume (not ah .any (right == 0 ))
1160+ assume (not xp .any (right == 0 ))
11611161
11621162 res = ctx .func (left , right )
11631163
0 commit comments