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

Function reshape_uniq

numpy/lib/_arraysetops_impl.py:335–340  ·  view source on GitHub ↗
(uniq)

Source from the content-addressed store, hash-verified

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,

Callers 1

uniqueFunction · 0.85

Calls 2

reshapeMethod · 0.80
viewMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…