Every abstract array in Julia has a shape that determines how that array behaves with respect to indexing and certain array operations.
The shape of an array is fully specified by a tuple of lengths called its dimensions, which tell you how long the array is in each direction.
You can see the dimensions of an array using size
: