Intel® Fortran Compiler 18.0 Developer Guide and Reference

CONJG

Elemental Intrinsic Function (Generic): Calculates the conjugate of a complex number.

result = CONJG (z)

z

(Input) Must be of type complex.

Results

The result type and kind are the same as z. If z has the value (x, y), the result has the value (x, -y).

Specific Name

Argument Type

Result Type

CONJG

COMPLEX(4)

COMPLEX(4)

DCONJG

COMPLEX(8)

COMPLEX(8)

QCONJG

COMPLEX(16)

COMPLEX(16)

Example

CONJG ((2.0, 3.0)) has the value (2.0, -3.0).

CONJG ((1.0, -4.2)) has the value (1.0, 4.2).

The following shows another example:

COMPLEX z1
COMPLEX(8) z2
z1 = CONJG((3.0, 5.6))       ! returns (3.0, -5.6)
z2 = DCONJG((3.0D0, 5.6D0))  ! returns (3.0D0, -5.6D0)

See Also