The indices of the top k elements of an array. Refer to :func:`dask.array.argtopk` for full documentation. See Also -------- dask.array.argtopk : equivalent function
(self, k, axis=-1, split_every=None)
| 2276 | return topk(self, k, axis=axis, split_every=split_every) |
| 2277 | |
| 2278 | def argtopk(self, k, axis=-1, split_every=None): |
| 2279 | """The indices of the top k elements of an array. |
| 2280 | |
| 2281 | Refer to :func:`dask.array.argtopk` for full documentation. |
| 2282 | |
| 2283 | See Also |
| 2284 | -------- |
| 2285 | dask.array.argtopk : equivalent function |
| 2286 | """ |
| 2287 | from dask.array.reductions import argtopk |
| 2288 | |
| 2289 | return argtopk(self, k, axis=axis, split_every=split_every) |
| 2290 | |
| 2291 | def astype(self, dtype, **kwargs): |
| 2292 | """Copy of the array, cast to a specified type. |