(self)
| 118 | assert_equal(eye(2, 2, dtype=bool), [[True, False], [False, True]]) |
| 119 | |
| 120 | def test_order(self): |
| 121 | mat_c = eye(4, 3, k=-1) |
| 122 | mat_f = eye(4, 3, k=-1, order='F') |
| 123 | assert_equal(mat_c, mat_f) |
| 124 | assert mat_c.flags.c_contiguous |
| 125 | assert not mat_c.flags.f_contiguous |
| 126 | assert not mat_f.flags.c_contiguous |
| 127 | assert mat_f.flags.f_contiguous |
| 128 | |
| 129 | |
| 130 | class TestDiag: |
nothing calls this directly
no test coverage detected