Extent of a dimension

The extent of a dimension is the number of elements in that dimension, computed as the value of the upper bound minus the value of the lower bound, plus one.
INTEGER, DIMENSION(5) :: X     ! Extent = 5
REAL :: Y(2:4,3:6)             ! Extent in 1st dimension = 3
                               ! Extent in 2nd dimension = 4

The minimum extent is zero, in a dimension where the lower bound is greater than the upper bound.

IBM extension begins The theoretical maximum number of elments in an array is 2**63-1 elements. Hardware addressing considerations make it impractical to declare any combination of data objects with a total size in bytes that exceeds this value. IBM extension ends

Different array declarators associated by common, equivalence, or argument association can have different ranks and extents.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us