HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
COMPLEX
Chapter 10 305
COMPLEX
Declares entities of type complex.
Syntax
COMPLEX [
kind-spec
] [[,
attrib-list
] ::]
entity-list
kind-spec
is the kind type parameter that speciļ¬es the range and precision of the
entities in
entity-list
.
kind-spec
takes the form:
([KIND=]
kind-param
)
where
kind-param
represents the kind of both the real and imaginary parts
of the complex number. It can be a named constant or a constant expression
that has the integer value of 4 or 8. The size of the default type is 4.
As an extension,
kind-spec
can take the form:
*
len-param
where
len-param
is the integer 8 or 16 (default = 8), which represents the
size of the whole complex entity.
attrib-list
is a list of one or more of the following attributes, separated by commas:
If
attrib-list
is present, it must be followed by the double colon. For
information about individual attributes, see the corresponding statement in
this chapter.
entity-list
is a list of entities, separated by commas. Each entity takes the form:
name
[(
array-spec
)] [=
initialization-expr
]
Table 10-6
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET