Return an array whose values are limited to ``[min, max]``. One of max or min must be given. Refer to :func:`dask.array.clip` for full documentation. See Also -------- dask.array.clip : equivalent function
(self, min=None, max=None)
| 611 | return conj(self) |
| 612 | |
| 613 | def clip(self, min=None, max=None): |
| 614 | """Return an array whose values are limited to ``[min, max]``. |
| 615 | One of max or min must be given. |
| 616 | |
| 617 | Refer to :func:`dask.array.clip` for full documentation. |
| 618 | |
| 619 | See Also |
| 620 | -------- |
| 621 | dask.array.clip : equivalent function |
| 622 | """ |
| 623 | from dask.array._array_expr._ufunc import clip |
| 624 | |
| 625 | return clip(self, min, max) |
| 626 | |
| 627 | def __array_ufunc__(self, numpy_ufunc, method, *inputs, **kwargs): |
| 628 | out = kwargs.get("out", ()) |
no outgoing calls