std::proj(std::complex)
From cppreference.com
Defined in header <complex>
|
||
template< class T > std::complex<T> proj( const std::complex<T>& z ); |
(1) | (since C++11) |
Additional overloads (since C++11) |
||
Defined in header <complex>
|
||
(A) | ||
std::complex<float> proj( float f ); std::complex<double> proj( double f ); |
(until C++23) | |
template< class FloatingPoint > std::complex<FloatingPoint> proj( FloatingPoint f ); |
(since C++23) | |
template< class Integer > std::complex<double> proj( Integer i ); |
(B) | |
For most z, std::proj(z) == z, but all complex infinities, even the numbers where one component is infinite and the other is NaN, become positive real infinity, (