Intel® Fortran Compiler 17.0 Developer Guide and Reference
Elemental Intrinsic Function (Generic): Calculates the conjugate of a complex number.
result = CONJG (z)
z |
(Input) Must be of type complex. |
The result type and kind is 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) |
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)