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

Method test_dot_negative_stride

numpy/core/tests/test_regression.py:803–809  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

801 assert_raises(ValueError, np.fromiter, [['12', ''], ['13', '']], str)
802
803 def test_dot_negative_stride(self):
804 # Ticket #588
805 x = np.array([[1, 5, 25, 125., 625]])
806 y = np.array([[20.], [160.], [640.], [1280.], [1024.]])
807 z = y[::-1].copy()
808 y2 = y[::-1]
809 assert_equal(np.dot(x, z), np.dot(x, y2))
810
811 def test_object_casting(self):
812 # 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