(self)
| 63 | array([[0, 1, 0, 0], [0, 0, 1, 0]])) |
| 64 | |
| 65 | def test_diag(self): |
| 66 | assert_equal(eye(4, k=1), |
| 67 | array([[0, 1, 0, 0], |
| 68 | [0, 0, 1, 0], |
| 69 | [0, 0, 0, 1], |
| 70 | [0, 0, 0, 0]])) |
| 71 | |
| 72 | assert_equal(eye(4, k=-1), |
| 73 | array([[0, 0, 0, 0], |
| 74 | [1, 0, 0, 0], |
| 75 | [0, 1, 0, 0], |
| 76 | [0, 0, 1, 0]])) |
| 77 | |
| 78 | def test_2d(self): |
| 79 | assert_equal(eye(4, 3), |
nothing calls this directly
no test coverage detected