(uniq)
| 333 | raise TypeError(msg.format(dt=ar.dtype)) from e |
| 334 | |
| 335 | def reshape_uniq(uniq): |
| 336 | n = len(uniq) |
| 337 | uniq = uniq.view(orig_dtype) |
| 338 | uniq = uniq.reshape(n, *orig_shape[1:]) |
| 339 | uniq = np.moveaxis(uniq, 0, axis) |
| 340 | return uniq |
| 341 | |
| 342 | output = _unique1d(consolidated, return_index, |
| 343 | return_inverse, return_counts, |