Reshaping Range Definitions
Reshaping Access – Reshaping with full /":" and end /"end".
Reshaping Access
If for a subarray definition fewer parameters are given than dimensions exist for the array, the last dimension specified gets a special meaning. Consider the example array of size [4,3,2]:
When addressing into this array by only specifying two dimensions, trailing dimension(s) will join together up to the last dimension specified. We might image this effect as an implicit array reshape. Out of the original array, the subarray is created from the following reshaped version (even if the reshape is not really done).
The third dimension is joined to the last specified dimension. Joining two dimensions means multiplying its lengths. So the resulting dimension is 3 * 2 = 6 elements in length. Therefore, the expression
Reshaping with full and end
The special keywords
The