MCPcopy
hub / github.com/dask/dask / ones

Method ones

dask/array/backends.py:362–368  ·  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

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

Calls

no outgoing calls