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

Method test_axes

numpy/lib/tests/test_function_base.py:118–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 assert_equal(rot90(a, k=1, axes=(1, 0)), rot90(a, k=-1, axes=(0, 1)))
117
118 def test_axes(self):
119 a = np.ones((50, 40, 3))
120 assert_equal(rot90(a).shape, (40, 50, 3))
121 assert_equal(rot90(a, axes=(0, 2)), rot90(a, axes=(0, -1)))
122 assert_equal(rot90(a, axes=(1, 2)), rot90(a, axes=(-2, -1)))
123
124 def test_rotation_axes(self):
125 a = np.arange(8).reshape((2, 2, 2))

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
rot90Function · 0.90

Tested by

no test coverage detected