Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Fortran 90 Programmer's Reference: HP Series 700/800 Computers > Chapter 4 Arrays

Array inquiry functions

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.