VMS Help
FORTRAN, Data, Arrays
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
An array is a group of contiguous storage locations associated with
a single symbolic name, the array name. The individual storage
locations, called array elements, are referred to by a subscript
appended to the array name. An array can have from 1 to 7
dimensions. The Fortran statements that establish arrays are:
type declaration statements, the DIMENSION statement, and the
COMMON statement.
The data type of an array is specified in the same way as the data
type of a variable; either implicitly by the first letter of the
name or explicitly by a type declaration statement.
An array declarator specifies the symbolic name that identifies an
array within a program unit and indicates the properties of the
array. It has the form:
a(d[,d]...) a is the name of the array
d specifies the bounds of the array in the form:
[dl:]du dl is the lower bound
du is the upper bound
A subscript qualifies an array name. A subscript is a list of
expressions, called subscript expressions, enclosed in parentheses,
that determine which element in the array is referred to. The
subscript is appended to the array name it qualifies. A subscript
has the form:
(s[,s]...) s is a subscript expression
A one-dimensional array is stored with its first element in the
first storage location and its last element in the last storage
location of the sequence. A multidimensional array is stored so
that the leftmost subscripts vary most rapidly.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.