MCPcopy Index your code
hub / github.com/numpy/numpy / test_order

Method test_order

numpy/lib/tests/test_twodim_base.py:120–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
130class TestDiag:

Callers

nothing calls this directly

Calls 2

eyeFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected