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

Method size

dask/array/core.py:6259–6263  ·  view source on GitHub ↗

The total number of blocks in the array.

(self)

Source from the content-addressed store, hash-verified

6257
6258 @property
6259 def size(self) -> int:
6260 """
6261 The total number of blocks in the array.
6262 """
6263 return math.prod(self.shape)
6264
6265 @property
6266 def shape(self) -> tuple[int, ...]:

Callers

nothing calls this directly

Calls 1

prodMethod · 0.45

Tested by

no test coverage detected