Namespaces
Variants
Views
Actions

std::conj(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 15:44, 18 April 2013 by Cubbi (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <complex>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
template< class T >
complex<T> conj( const complex<T>& z );
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
std::complex<long double> conj( long double z );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
template< class DoubleOrIngeter >
std::complex<double> conj( DoubleOrInteger z );
</td>

<td > (3) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
std::complex<float> conj( float z );
</td>

<td > (4) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Returns the complex conjugate of the complex number z.

(since C++11)Additional overloads are provided for float, double, long double, and all integer types, which are treated as complex numbers with zero imaginary component.

Parameters

z - complex value

Return value

the complex conjugate of z

See also

Template:cpp/numeric/complex/dcl list absTemplate:cpp/numeric/complex/dcl list normTemplate:cpp/numeric/complex/dcl list polar