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

Method test_reduce_contiguous

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

Source from the content-addressed store, hash-verified

1784 np.squeeze(np.array([[1],[2],[3]]), axis=0)
1785
1786 def test_reduce_contiguous(self):
1787 # GitHub issue #387
1788 a = np.add.reduce(np.zeros((2, 1, 2)), (0, 1))
1789 b = np.add.reduce(np.zeros((2, 1, 2)), 1)
1790 assert_(a.flags.c_contiguous)
1791 assert_(a.flags.f_contiguous)
1792 assert_(b.flags.c_contiguous)
1793
1794 @pytest.mark.skipif(IS_PYSTON, reason="Pyston disables recursion checking")
1795 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