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

Method test_tall_matrix

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

Source from the content-addressed store, hash-verified

420 )
421
422 def test_tall_matrix(self):
423 a = np.zeros((10, 3), int)
424 fill_diagonal(a, 5)
425 assert_array_equal(
426 a, np.array([[5, 0, 0],
427 [0, 5, 0],
428 [0, 0, 5],
429 [0, 0, 0],
430 [0, 0, 0],
431 [0, 0, 0],
432 [0, 0, 0],
433 [0, 0, 0],
434 [0, 0, 0],
435 [0, 0, 0]])
436 )
437
438 def test_tall_matrix_wrap(self):
439 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