(self)
| 100 | assert_equal(eye(2, 2, dtype=bool), [[True, False], [False, True]]) |
| 101 | |
| 102 | def test_order(self): |
| 103 | mat_c = eye(4, 3, k=-1) |
| 104 | mat_f = eye(4, 3, k=-1, order='F') |
| 105 | assert_equal(mat_c, mat_f) |
| 106 | assert mat_c.flags.c_contiguous |
| 107 | assert not mat_c.flags.f_contiguous |
| 108 | assert not mat_f.flags.c_contiguous |
| 109 | assert mat_f.flags.f_contiguous |
| 110 | |
| 111 | |
| 112 | class TestDiag: |
nothing calls this directly
no test coverage detected