MCPcopy
hub / github.com/numpy/numpy / test_vecself

Method test_vecself

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

Source from the content-addressed store, hash-verified

8314 assert_equal(np.inner(sca, vec), desired)
8315
8316 def test_vecself(self):
8317 # Ticket 844.
8318 # Inner product of a vector with itself segfaults or give
8319 # meaningless result
8320 a = np.zeros(shape=(1, 80), dtype=np.float64)
8321 p = np.inner(a, a)
8322 assert_almost_equal(p, 0, decimal=14)
8323
8324 def test_inner_product_with_various_contiguities(self):
8325 # github issue 6532

Callers

nothing calls this directly

Calls 2

assert_almost_equalFunction · 0.90
innerMethod · 0.80

Tested by

no test coverage detected