(self, axis)
| 1090 | |
| 1091 | @pytest.mark.parametrize("axis", [None, 0, -1]) |
| 1092 | def test_unique_inverse_with_axis(self, axis): |
| 1093 | x = np.array([[4, 4, 3], [2, 2, 1], [2, 2, 1], [4, 4, 3]]) |
| 1094 | uniq, inv = unique(x, return_inverse=True, axis=axis) |
| 1095 | assert_equal(inv.ndim, x.ndim if axis is None else 1) |
| 1096 | assert_array_equal(x, np.take(uniq, inv, axis=axis)) |
| 1097 | |
| 1098 | def test_unique_axis_zeros(self): |
| 1099 | # issue 15559 |
nothing calls this directly
no test coverage detected