size¶
- property array.size: int | None¶
Number of elements in an array.
Note
This must equal the product of the array’s dimensions.
- Returns:
out (Optional[int]) – number of elements in an array. The returned value must be
None
if and only if one or more array dimensions are unknown.
Note
For array libraries having graph-based computational models, an array may have unknown dimensions due to data-dependent operations.