The total number of blocks in the array.
(self)
| 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, ...]: |