|
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 | from numpy.testing import assert_allclose |
@@ -68,26 +66,6 @@ def test_atan2_dtype_matrix(op1_dtype, op2_dtype): |
68 | 66 | assert_allclose(dpt.asnumpy(r), expected, atol=tol, rtol=tol) |
69 | 67 |
|
70 | 68 |
|
71 | | -@pytest.mark.parametrize("arr_dt", _no_complex_dtypes[1:]) |
72 | | -def test_atan2_python_scalar(arr_dt): |
73 | | - q = get_queue_or_skip() |
74 | | - skip_if_dtype_not_supported(arr_dt, q) |
75 | | - |
76 | | - X = dpt.ones((10, 10), dtype=arr_dt, sycl_queue=q) |
77 | | - py_ones = ( |
78 | | - bool(1), |
79 | | - int(1), |
80 | | - float(1), |
81 | | - np.float32(1), |
82 | | - ctypes.c_int(1), |
83 | | - ) |
84 | | - for sc in py_ones: |
85 | | - R = dpt.atan2(X, sc) |
86 | | - assert isinstance(R, dpt.usm_ndarray) |
87 | | - R = dpt.atan2(sc, X) |
88 | | - assert isinstance(R, dpt.usm_ndarray) |
89 | | - |
90 | | - |
91 | 69 | @pytest.mark.parametrize("dt", ["f2", "f4", "f8"]) |
92 | 70 | def test_atan2_special_case_one_nan(dt): |
93 | 71 | """If either x1_i or x2_i is NaN, the result is NaN.""" |
@@ -194,7 +172,7 @@ def test_atan2_special_case_pzero_and_nzero(dt): |
194 | 172 |
|
195 | 173 |
|
196 | 174 | @pytest.mark.parametrize("dt", ["f2", "f4", "f8"]) |
197 | | -def test_atan2_special_case_pzero_and_negatvie(dt): |
| 175 | +def test_atan2_special_case_pzero_and_negative(dt): |
198 | 176 | """ |
199 | 177 | If x1_i is +0 and x2_i is less than 0, the result |
200 | 178 | is an approximation to +pi. |
|
0 commit comments