(self)
| 411 | |
| 412 | class TestFillDiagonal: |
| 413 | def test_basic(self): |
| 414 | a = np.zeros((3, 3), int) |
| 415 | fill_diagonal(a, 5) |
| 416 | assert_array_equal( |
| 417 | a, np.array([[5, 0, 0], |
| 418 | [0, 5, 0], |
| 419 | [0, 0, 5]]) |
| 420 | ) |
| 421 | |
| 422 | def test_tall_matrix(self): |
| 423 | a = np.zeros((10, 3), int) |
nothing calls this directly
no test coverage detected