HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
DIMENSION (statement and attribute)
Chapter 10322
DIMENSION (statement and attribute)
Declares a variable to be an array.
Syntax
A type declaration statement with the DIMENSION attribute is:
type
, DIMENSION (
array-spec
) [[,
attrib-list
]::]
entity-list
type
is a valid type specification (INTEGER, REAL, LOGICAL, CHARACTER, TYPE(
type-name
), etc.).
array-spec
is one of the following:
explicit-shape-spec-list
assumed-shape-spec-list
deferred-shape-spec-list
assumed-size-spec
explicit-shape-spec
is
[
lower-bound
:]
upper-bound
lower-bound
,
upper-bound
are specification expressions.
assumed-shape-spec
is
[
lower-bound
] :
deferred-shape-spec
is
:
assumed-size-spec
is