(f, x1, y1, x2, y2, exact=True)
| 545 | |
| 546 | |
| 547 | def check_complex_value(f, x1, y1, x2, y2, exact=True): |
| 548 | z1 = np.array([complex(x1, y1)]) |
| 549 | z2 = complex(x2, y2) |
| 550 | with np.errstate(invalid='ignore'): |
| 551 | if exact: |
| 552 | assert_equal(f(z1), z2) |
| 553 | else: |
| 554 | assert_almost_equal(f(z1), z2) |
| 555 | |
| 556 | class TestSpecialComplexAVX: |
| 557 | @pytest.mark.parametrize("stride", [-4,-2,-1,1,2,4]) |
no test coverage detected