02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>HP</strong> <strong>Fortran</strong> statements<br />

DOUBLE COMPLEX (extension)<br />

The DOUBLE COMPLEX statement is constrained by the rules for type declaration statements,<br />

including the requirement that it precede all executable statements. Note however, that the<br />

DOUBLE COMPLEX statement does not have a kind parameter.<br />

Examples<br />

The following are valid declarations:<br />

DOUBLE COMPLEX x, y<br />

DOUBLE COMPLEX, PARAMETER :: t1(2)=(/(1.2, 0), (-1.01, 0.0009)/)<br />

! use an array constructor to initialize a double complex array<br />

DOUBLE COMPLEX, DIMENSION(2) :: dc_vec = &<br />

(/(2.294D-8, 6.288D-4), (-4.817D4, 0)/)<br />

! use slashes as initialization delimiters, an <strong>HP</strong> extension<br />

DOUBLE COMPLEX dcx/(2.294D-8, 6.288D-4)/ ! note, no double colon<br />

Related statements<br />

COMPLEX<br />

Related concepts<br />

For related information, see the following:<br />

“Type declaration for intrinsic types” on page 27<br />

“Implicit typing” on page 31<br />

“Array declarations” on page 57<br />

“Array constructors” on page 73<br />

“Expressions” on page 83<br />

Chapter 10 297

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!