|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 |
|
17 |
| -import itertools |
18 |
| -import os |
19 |
| - |
20 | 17 | import numpy as np
|
21 | 18 | import pytest
|
22 | 19 | from numpy.testing import assert_allclose
|
@@ -189,46 +186,3 @@ def test_hyper_real_special_cases(np_call, dpt_call, dtype):
|
189 | 186 |
|
190 | 187 | tol = 8 * dpt.finfo(dtype).resolution
|
191 | 188 | assert_allclose(dpt.asnumpy(dpt_call(yf)), Y_np, atol=tol, rtol=tol)
|
192 |
| - |
193 |
| - |
194 |
| -@pytest.mark.parametrize("np_call, dpt_call", _all_funcs) |
195 |
| -@pytest.mark.parametrize("dtype", ["c8", "c16"]) |
196 |
| -def test_hyper_complex_special_cases_conj_property(np_call, dpt_call, dtype): |
197 |
| - q = get_queue_or_skip() |
198 |
| - skip_if_dtype_not_supported(dtype, q) |
199 |
| - |
200 |
| - x = [np.nan, np.inf, -np.inf, +0.0, -0.0, +1.0, -1.0] |
201 |
| - xc = [complex(*val) for val in itertools.product(x, repeat=2)] |
202 |
| - |
203 |
| - Xc_np = np.array(xc, dtype=dtype) |
204 |
| - Xc = dpt.asarray(Xc_np, dtype=dtype, sycl_queue=q) |
205 |
| - |
206 |
| - tol = 50 * dpt.finfo(dtype).resolution |
207 |
| - Y = dpt_call(Xc) |
208 |
| - Yc = dpt_call(dpt.conj(Xc)) |
209 |
| - |
210 |
| - dpt.allclose(Y, dpt.conj(Yc), atol=tol, rtol=tol) |
211 |
| - |
212 |
| - |
213 |
| -@pytest.mark.skipif( |
214 |
| - os.name != "posix", reason="Known to fail on Windows due to bug in NumPy" |
215 |
| -) |
216 |
| -@pytest.mark.parametrize("np_call, dpt_call", _all_funcs) |
217 |
| -@pytest.mark.parametrize("dtype", ["c8", "c16"]) |
218 |
| -def test_hyper_complex_special_cases(np_call, dpt_call, dtype): |
219 |
| - q = get_queue_or_skip() |
220 |
| - skip_if_dtype_not_supported(dtype, q) |
221 |
| - |
222 |
| - x = [np.nan, np.inf, -np.inf, +0.0, -0.0, +1.0, -1.0] |
223 |
| - xc = [complex(*val) for val in itertools.product(x, repeat=2)] |
224 |
| - |
225 |
| - Xc_np = np.array(xc, dtype=dtype) |
226 |
| - Xc = dpt.asarray(Xc_np, dtype=dtype, sycl_queue=q) |
227 |
| - |
228 |
| - with np.errstate(all="ignore"): |
229 |
| - Ynp = np_call(Xc_np) |
230 |
| - |
231 |
| - tol = 50 * dpt.finfo(dtype).resolution |
232 |
| - Y = dpt_call(Xc) |
233 |
| - assert_allclose(dpt.asnumpy(dpt.real(Y)), np.real(Ynp), atol=tol, rtol=tol) |
234 |
| - assert_allclose(dpt.asnumpy(dpt.imag(Y)), np.imag(Ynp), atol=tol, rtol=tol) |
0 commit comments