Back to Core Functions
size
Array dimensions
Syntax
s = size(A) s = size(A, dim)
Description
Returns the size of an array. With a dimension argument, returns the length of that dimension.
Parameters
| Name | Description |
|---|---|
| A | Input array |
| dim(optional) | Dimension to query (1-indexed) |
Returns
Size as NDArray or scalar