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 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- import ctypes
18-
1917import numpy as np
2018import pytest
2119
@@ -60,26 +58,6 @@ def test_nextafter_dtype_matrix(op1_dtype, op2_dtype):
6058 assert (dpt .asnumpy (r ) == expected .astype (r .dtype )).all ()
6159
6260
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-
8361@pytest .mark .parametrize ("dt" , ["f2" , "f4" , "f8" ])
8462def test_nextafter_special_cases_nan (dt ):
8563 """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