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

Method test_complex

numpy/_core/tests/test_function_base.py:379–385  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

377 assert_equal(t5, t2.T)
378
379 def test_complex(self):
380 lim1 = linspace(1 + 2j, 3 + 4j, 5)
381 t1 = array([1.0 + 2.j, 1.5 + 2.5j, 2.0 + 3j, 2.5 + 3.5j, 3.0 + 4j])
382 lim2 = linspace(1j, 10, 5)
383 t2 = array([0.0 + 1.j, 2.5 + 0.75j, 5.0 + 0.5j, 7.5 + 0.25j, 10.0 + 0j])
384 assert_equal(lim1, t1)
385 assert_equal(lim2, t2)
386
387 def test_physical_quantities(self):
388 a = PhysicalQuantity(0.0)

Callers

nothing calls this directly

Calls 3

linspaceFunction · 0.90
arrayFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected