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

Method test_compress

numpy/_core/tests/test_numeric.py:119–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 assert_equal(out, tgt)
118
119 def test_compress(self):
120 arr = [[0, 1, 2, 3, 4],
121 [5, 6, 7, 8, 9]]
122 tgt = [[5, 6, 7, 8, 9]]
123 out = np.compress([0, 1], arr, axis=0)
124 assert_equal(out, tgt)
125
126 def test_count_nonzero(self):
127 arr = [[0, 1, 7, 0, 0],

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
compressMethod · 0.80

Tested by

no test coverage detected