(start, stop, num, endpoint=True, dtype=None)
| 264 | |
| 265 | |
| 266 | def linspace(start, stop, num, endpoint=True, dtype=None): |
| 267 | from dask.array.core import Array |
| 268 | |
| 269 | if isinstance(start, Array): |
| 270 | start = start.compute() |
| 271 | |
| 272 | if isinstance(stop, Array): |
| 273 | stop = stop.compute() |
| 274 | |
| 275 | return np.linspace(start, stop, num, endpoint=endpoint, dtype=dtype) |
| 276 | |
| 277 | |
| 278 | def astype(x, astype_dtype=None, **kwargs): |