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