MCPcopy Create free account
hub / github.com/dask/dask / linspace

Function linspace

dask/array/chunk.py:266–275  ·  view source on GitHub ↗
(start, stop, num, endpoint=True, dtype=None)

Source from the content-addressed store, hash-verified

264
265
266def 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
278def astype(x, astype_dtype=None, **kwargs):

Callers

nothing calls this directly

Calls 1

computeMethod · 0.45

Tested by

no test coverage detected