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

Method test_conjugate_out

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

Source from the content-addressed store, hash-verified

4283 a.conj()
4284
4285 def test_conjugate_out(self):
4286 # Minimal test for the out argument being passed on correctly
4287 # NOTE: The ability to pass `out` is currently undocumented!
4288 a = np.array([1 - 1j, 1 + 1j, 23 + 23.0j])
4289 out = np.empty_like(a)
4290 res = a.conjugate(out)
4291 assert res is out
4292 assert_array_equal(out, a.conjugate())
4293
4294 def test_conjugate_scalar(self):
4295 for v in 5, 5j:

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
conjugateMethod · 0.80

Tested by

no test coverage detected