Complex data types can be specified as follows:
If a kind parameter is specified, the complex constant has the kind specified. If no kind parameter is specified, the kind of both parts is default real, and the constant is of type default complex.
DOUBLE COMPLEX is COMPLEX(8). No kind parameter is permitted for data declared with type DOUBLE COMPLEX.
For more information on complex data types, see General Rules for Complex Constants, COMPLEX(4) Constants, and COMPLEX(8) or DOUBLE COMPLEX Constants.
Examples
The following examples show how complex variables can be declared.
An entity-oriented example is:
COMPLEX (4), DIMENSION (8) :: cz, cq
An attribute-oriented example is:
COMPLEX(4) cz, cq
DIMENSION(8) cz, cq