As in Fortran, the shape of an array, a, is defined as the vector of extents of its ranges, ie , where R is the rank of the array.