File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- import ctypes
18
-
19
17
import numpy as np
20
18
import pytest
21
19
@@ -60,26 +58,6 @@ def test_nextafter_dtype_matrix(op1_dtype, op2_dtype):
60
58
assert (dpt .asnumpy (r ) == expected .astype (r .dtype )).all ()
61
59
62
60
63
- @pytest .mark .parametrize ("arr_dt" , _no_complex_dtypes [1 :])
64
- def test_nextafter_python_scalar (arr_dt ):
65
- q = get_queue_or_skip ()
66
- skip_if_dtype_not_supported (arr_dt , q )
67
-
68
- X = dpt .ones ((10 , 10 ), dtype = arr_dt , sycl_queue = q )
69
- py_ones = (
70
- bool (1 ),
71
- int (1 ),
72
- float (1 ),
73
- np .float32 (1 ),
74
- ctypes .c_int (1 ),
75
- )
76
- for sc in py_ones :
77
- R = dpt .nextafter (X , sc )
78
- assert isinstance (R , dpt .usm_ndarray )
79
- R = dpt .nextafter (sc , X )
80
- assert isinstance (R , dpt .usm_ndarray )
81
-
82
-
83
61
@pytest .mark .parametrize ("dt" , ["f2" , "f4" , "f8" ])
84
62
def test_nextafter_special_cases_nan (dt ):
85
63
"""If either x1_i or x2_i is NaN, the result is NaN."""
You can’t perform that action at this time.
0 commit comments