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

Method test_flatten

numpy/core/tests/test_multiarray.py:5053–5056  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5051 assert_equal(out, tgt)
5052
5053 def test_flatten(self):
5054 arr = np.arange(10).reshape(2, 5)
5055 out = np.compress([0, 1], arr)
5056 assert_equal(out, 1)
5057
5058
5059class TestPutmask:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
reshapeMethod · 0.80
compressMethod · 0.80

Tested by

no test coverage detected