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

Method test_truncate

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

Source from the content-addressed store, hash-verified

5860 assert_equal(out, tgt)
5861
5862 def test_truncate(self):
5863 tgt = [[1], [6]]
5864 arr = np.arange(10).reshape(2, 5)
5865 out = np.compress([0, 1], arr, axis=1)
5866 assert_equal(out, tgt)
5867
5868 def test_flatten(self):
5869 arr = np.arange(10).reshape(2, 5)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
reshapeMethod · 0.80
compressMethod · 0.80

Tested by

no test coverage detected