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

Method test_tall_matrix

numpy/lib/tests/test_index_tricks.py:444–458  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

442 )
443
444 def test_tall_matrix(self):
445 a = np.zeros((10, 3), int)
446 fill_diagonal(a, 5)
447 assert_array_equal(
448 a, np.array([[5, 0, 0],
449 [0, 5, 0],
450 [0, 0, 5],
451 [0, 0, 0],
452 [0, 0, 0],
453 [0, 0, 0],
454 [0, 0, 0],
455 [0, 0, 0],
456 [0, 0, 0],
457 [0, 0, 0]])
458 )
459
460 def test_tall_matrix_wrap(self):
461 a = np.zeros((10, 3), int)

Callers

nothing calls this directly

Calls 2

fill_diagonalFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected