diff --git a/cunumeric/array.py b/cunumeric/array.py index 06352a6bc..5cd67aee4 100644 --- a/cunumeric/array.py +++ b/cunumeric/array.py @@ -3020,6 +3020,21 @@ def view(self, dtype=None, type=None): return ndarray(shape=self.shape, dtype=self.dtype, thunk=self._thunk) def unique(self): + """a.unique() + + Find the unique elements of an array. + + Refer to :func:`cunumeric.unique` for full documentation. + + See Also + -------- + cunumeric.unique : equivalent function + + Availability + -------- + Multiple GPUs, Multiple CPUs + + """ thunk = self._thunk.unique() return ndarray(shape=thunk.shape, thunk=thunk) diff --git a/docs/cunumeric/source/api/math.rst b/docs/cunumeric/source/api/math.rst index 816de11d5..c6216d324 100644 --- a/docs/cunumeric/source/api/math.rst +++ b/docs/cunumeric/source/api/math.rst @@ -114,3 +114,6 @@ Miscellaneous absolute fabs sign + inner + outer + vdot diff --git a/docs/cunumeric/source/api/ndarray.rst b/docs/cunumeric/source/api/ndarray.rst index ffd769077..192000918 100644 --- a/docs/cunumeric/source/api/ndarray.rst +++ b/docs/cunumeric/source/api/ndarray.rst @@ -114,8 +114,8 @@ Shape manipulation ndarray.ravel ndarray.squeeze -Item selectiona and manipulation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Item selection and manipulation +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. autosummary:: :toctree: generated/ @@ -157,6 +157,7 @@ Calculation .. ndarray.cumprod ndarray.all ndarray.any + ndarray.unique EXTRA diff --git a/docs/cunumeric/source/comparison/_comparison_generator.py b/docs/cunumeric/source/comparison/_comparison_generator.py index 994f76247..6e44736d4 100644 --- a/docs/cunumeric/source/comparison/_comparison_generator.py +++ b/docs/cunumeric/source/comparison/_comparison_generator.py @@ -30,7 +30,11 @@ def _filter(obj, n): "set_numeric_ops", "size", "sometrue", - ] # not in blacklist + "loads", + "mafromtxt", + "matmul", + "ndfromtxt", + ] # not in blocklist and callable(getattr(obj, n)) # callable and not isinstance(getattr(obj, n), type) # not class and n[0].islower() # starts with lower char