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

Method test_tall_matrix_wrap

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

Source from the content-addressed store, hash-verified

436 )
437
438 def test_tall_matrix_wrap(self):
439 a = np.zeros((10, 3), int)
440 fill_diagonal(a, 5, True)
441 assert_array_equal(
442 a, np.array([[5, 0, 0],
443 [0, 5, 0],
444 [0, 0, 5],
445 [0, 0, 0],
446 [5, 0, 0],
447 [0, 5, 0],
448 [0, 0, 5],
449 [0, 0, 0],
450 [5, 0, 0],
451 [0, 5, 0]])
452 )
453
454 def test_wide_matrix(self):
455 a = np.zeros((3, 10), int)

Callers

nothing calls this directly

Calls 2

fill_diagonalFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected