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

Method test_scalars

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

Source from the content-addressed store, hash-verified

2670 assert_almost_equal(np.std(self.A)**2, self.real_var)
2671
2672 def test_scalars(self):
2673 assert_equal(np.var(1), 0)
2674 assert_equal(np.std(1), 0)
2675
2676 def test_ddof1(self):
2677 assert_almost_equal(np.var(self.A, ddof=1),

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
varMethod · 0.45
stdMethod · 0.45

Tested by

no test coverage detected