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

Method test_out_scalar

numpy/core/tests/test_numeric.py:2688–2699  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2686 self.real_var * len(self.A) / (len(self.A) - 2))
2687
2688 def test_out_scalar(self):
2689 d = np.arange(10)
2690 out = np.array(0.)
2691 r = np.std(d, out=out)
2692 assert_(r is out)
2693 assert_array_equal(r, out)
2694 r = np.var(d, out=out)
2695 assert_(r is out)
2696 assert_array_equal(r, out)
2697 r = np.mean(d, out=out)
2698 assert_(r is out)
2699 assert_array_equal(r, out)
2700
2701
2702class TestStdVarComplex:

Callers

nothing calls this directly

Calls 5

assert_Function · 0.90
assert_array_equalFunction · 0.90
stdMethod · 0.45
varMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected