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

Method ones

dask/array/backends.py:361–367  ·  view source on GitHub ↗

Create an array of ones Returns a new array having a specified shape and filled with ones.

(shape, *, dtype=None, meta=None, **kwargs)

Source from the content-addressed store, hash-verified

359
360 @staticmethod
361 def ones(shape, *, dtype=None, meta=None, **kwargs):
362 """Create an array of ones
363
364 Returns a new array having a specified shape and filled
365 with ones.
366 """
367 raise NotImplementedError
368
369 @staticmethod
370 def zeros(shape, *, dtype=None, meta=None, **kwargs):

Calls

no outgoing calls