(start, stop, num, endpoint=True, dtype=None)
| 273 | |
| 274 | |
| 275 | def linspace(start, stop, num, endpoint=True, dtype=None): |
| 276 | from dask.array.core import Array |
| 277 | |
| 278 | if isinstance(start, Array): |
| 279 | start = start.compute() |
| 280 | |
| 281 | if isinstance(stop, Array): |
| 282 | stop = stop.compute() |
| 283 | |
| 284 | return np.linspace(start, stop, num, endpoint=endpoint, dtype=dtype) |
| 285 | |
| 286 | |
| 287 | def astype(x, astype_dtype=None, **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…