(self)
| 4292 | assert_array_equal(out, a.conjugate()) |
| 4293 | |
| 4294 | def test_conjugate_scalar(self): |
| 4295 | for v in 5, 5j: |
| 4296 | a = np.array(v) |
| 4297 | assert a.conjugate() == v.conjugate() |
| 4298 | for a in (np.array('s'), np.array('2016', 'M'), |
| 4299 | np.array((1, 2), [('a', int), ('b', int)])): |
| 4300 | with pytest.raises(TypeError): |
| 4301 | a.conjugate() |
| 4302 | |
| 4303 | def test__complex__(self): |
| 4304 | dtypes = ['i1', 'i2', 'i4', 'i8', |