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

Method size

dask/array/core.py:6251–6255  ·  view source on GitHub ↗

The total number of blocks in the array.

(self)

Source from the content-addressed store, hash-verified

6249
6250 @property
6251 def size(self) -> int:
6252 """
6253 The total number of blocks in the array.
6254 """
6255 return math.prod(self.shape)
6256
6257 @property
6258 def shape(self) -> tuple[int, ...]:

Callers

nothing calls this directly

Calls 1

prodMethod · 0.45

Tested by

no test coverage detected