MCPcopy Create free account
hub / github.com/numpy/numpy / test_conjugate_out

Method test_conjugate_out

numpy/core/tests/test_multiarray.py:3632–3639  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3630 assert_raises(TypeError, lambda: a.conjugate())
3631
3632 def test_conjugate_out(self):
3633 # Minimal test for the out argument being passed on correctly
3634 # NOTE: The ability to pass `out` is currently undocumented!
3635 a = np.array([1-1j, 1+1j, 23+23.0j])
3636 out = np.empty_like(a)
3637 res = a.conjugate(out)
3638 assert res is out
3639 assert_array_equal(out, a.conjugate())
3640
3641 def test__complex__(self):
3642 dtypes = ['i1', 'i2', 'i4', 'i8',

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
conjugateMethod · 0.80

Tested by

no test coverage detected