MCPcopy Index your code
hub / github.com/numpy/numpy / test_conjugate_scalar

Method test_conjugate_scalar

numpy/_core/tests/test_multiarray.py:4294–4301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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',

Callers

nothing calls this directly

Calls 1

conjugateMethod · 0.80

Tested by

no test coverage detected