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

Method size

dask/array/core.py:6051–6055  ·  view source on GitHub ↗

The total number of blocks in the array.

(self)

Source from the content-addressed store, hash-verified

6049
6050 @property
6051 def size(self) -> int:
6052 """
6053 The total number of blocks in the array.
6054 """
6055 return math.prod(self.shape)
6056
6057 @property
6058 def shape(self) -> tuple[int, ...]:

Callers

nothing calls this directly

Calls 1

prodMethod · 0.45

Tested by

no test coverage detected