Fortran 90 has a number of intrinsic inquiry functions
that may be used to interrogate the properties of an array. The
array need not be defined as these functions examine the array itself
rather than its values, but in general, an allocatable array must
have been allocated and a pointer array must either be associated
with a target or have been explicitly disassociated.
The inquiry functions that can be used to return the properties
of an array are:
- ALLOCATED
interrogates whether an allocatable array is allocated.
- ASSOCIATED
examines the association status of a pointer to
determine whether it is associated with a target.
- LBOUND
returns
either the lower bound of a specific dimension or the lower bounds
of the array as a whole.
- SHAPE
returns the shape of the array as a rank-one integer
array.
- SIZE
returns the size of the array or the extent of a
particular dimension.
- UBOUND
is
similar to LBOUND
but returns an upper bound for a dimension or the upper bounds for
all the dimensions of the array.
All intrinsic procedures are described in Chapter 11.