(self)
| 696 | assert op(np.array(a), approx(np.array(x))) |
| 697 | |
| 698 | def test_numpy_array_wrong_shape(self): |
| 699 | np = pytest.importorskip("numpy") |
| 700 | |
| 701 | a12 = np.array([[1, 2]]) |
| 702 | a21 = np.array([[1], [2]]) |
| 703 | |
| 704 | assert a12 != approx(a21) |
| 705 | assert a21 != approx(a12) |
| 706 | |
| 707 | def test_numpy_array_protocol(self): |
| 708 | """ |