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