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

Method test_basic

numpy/matrixlib/tests/test_defmatrix.py:315–320  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313
314class TestIndexing:
315 def test_basic(self):
316 x = asmatrix(np.zeros((3, 2), float))
317 y = np.zeros((3, 1), float)
318 y[:, 0] = [0.8, 0.2, 0.3]
319 x[:, 1] = y > 0.5
320 assert_equal(x, [[0, 1], [0, 0], [0, 0]])
321
322
323class TestNewScalarIndexing:

Callers

nothing calls this directly

Calls 2

asmatrixFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected