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

Method test_flatten

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

Source from the content-addressed store, hash-verified

5866 assert_equal(out, tgt)
5867
5868 def test_flatten(self):
5869 arr = np.arange(10).reshape(2, 5)
5870 out = np.compress([0, 1], arr)
5871 assert_equal(out, 1)
5872
5873
5874class TestPutmask:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
reshapeMethod · 0.80
compressMethod · 0.80

Tested by

no test coverage detected