(self)
| 433 | |
| 434 | class TestFillDiagonal: |
| 435 | def test_basic(self): |
| 436 | a = np.zeros((3, 3), int) |
| 437 | fill_diagonal(a, 5) |
| 438 | assert_array_equal( |
| 439 | a, np.array([[5, 0, 0], |
| 440 | [0, 5, 0], |
| 441 | [0, 0, 5]]) |
| 442 | ) |
| 443 | |
| 444 | def test_tall_matrix(self): |
| 445 | a = np.zeros((10, 3), int) |
nothing calls this directly
no test coverage detected