MCPcopy
hub / github.com/numpy/numpy / test_dot_negative_stride

Method test_dot_negative_stride

numpy/_core/tests/test_regression.py:816–822  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

814 assert_raises(ValueError, np.fromiter, [['12', ''], ['13', '']], str)
815
816 def test_dot_negative_stride(self):
817 # Ticket #588
818 x = np.array([[1, 5, 25, 125., 625]])
819 y = np.array([[20.], [160.], [640.], [1280.], [1024.]])
820 z = y[::-1].copy()
821 y2 = y[::-1]
822 assert_equal(np.dot(x, z), np.dot(x, y2))
823
824 def test_object_casting(self):
825 # This used to trigger the object-type version of

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
dotMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected