(self)
| 76 | [0, 0, 1, 0]])) |
| 77 | |
| 78 | def test_2d(self): |
| 79 | assert_equal(eye(4, 3), |
| 80 | array([[1, 0, 0], |
| 81 | [0, 1, 0], |
| 82 | [0, 0, 1], |
| 83 | [0, 0, 0]])) |
| 84 | |
| 85 | assert_equal(eye(3, 4), |
| 86 | array([[1, 0, 0, 0], |
| 87 | [0, 1, 0, 0], |
| 88 | [0, 0, 1, 0]])) |
| 89 | |
| 90 | def test_diag2d(self): |
| 91 | assert_equal(eye(3, 4, k=2), |
nothing calls this directly
no test coverage detected