MCPcopy Index your code
hub / github.com/numpy/numpy / test_reduce_contiguous

Method test_reduce_contiguous

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

Source from the content-addressed store, hash-verified

1762 np.squeeze(np.array([[1], [2], [3]]), axis=0)
1763
1764 def test_reduce_contiguous(self):
1765 # GitHub issue #387
1766 a = np.add.reduce(np.zeros((2, 1, 2)), (0, 1))
1767 b = np.add.reduce(np.zeros((2, 1, 2)), 1)
1768 assert_(a.flags.c_contiguous)
1769 assert_(a.flags.f_contiguous)
1770 assert_(b.flags.c_contiguous)
1771
1772 @requires_deep_recursion
1773 def test_object_array_self_reference(self):

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
reduceMethod · 0.45

Tested by

no test coverage detected