![]() |
Classes and functions for complex numbers.
_Tp std::abs | ( | const complex< _Tp > & | __z | ) | [inline] |
Return magnitude of z.
Definition at line 594 of file complex.
Referenced by std::fabs(), std::binomial_distribution< _IntType >::operator()(), and std::poisson_distribution< _IntType >::operator()().
std::complex< _Tp > std::acos | ( | const std::complex< _Tp > & | __z | ) | [inline] |
acos(__z) [8.1.2].
Definition at line 86 of file tr1_impl/complex.
std::complex< _Tp > std::acosh | ( | const std::complex< _Tp > & | __z | ) | [inline] |
acosh(__z) [8.1.5].
Definition at line 205 of file tr1_impl/complex.
__gnu_cxx::__promote<_Tp>::__type std::arg | ( | _Tp | __x | ) | [inline] |
Additional overloads [8.1.9].
Definition at line 311 of file tr1_impl/complex.
References std::arg().
_Tp std::arg | ( | const complex< _Tp > & | __z | ) | [inline] |
std::complex< _Tp > std::asin | ( | const std::complex< _Tp > & | __z | ) | [inline] |
asin(__z) [8.1.3].
Definition at line 122 of file tr1_impl/complex.
std::complex< _Tp > std::asinh | ( | const std::complex< _Tp > & | __z | ) | [inline] |
asinh(__z) [8.1.6].
Definition at line 244 of file tr1_impl/complex.
std::complex< _Tp > std::atan | ( | const std::complex< _Tp > & | __z | ) | [inline] |
atan(__z) [8.1.4].
Definition at line 166 of file tr1_impl/complex.
std::complex< _Tp > std::atanh | ( | const std::complex< _Tp > & | __z | ) | [inline] |
atanh(__z) [8.1.7].
Definition at line 288 of file tr1_impl/complex.
complex< _Tp > std::conj | ( | const complex< _Tp > & | __z | ) | [inline] |
complex< _Tp > std::cos | ( | const complex< _Tp > & | __z | ) | [inline] |
complex< _Tp > std::cosh | ( | const complex< _Tp > & | __z | ) | [inline] |
complex< _Tp > std::exp | ( | const complex< _Tp > & | __z | ) | [inline] |
Return complex base e exponential of z.
Definition at line 755 of file complex.
Referenced by std::pow().
_Tp std::fabs | ( | const std::complex< _Tp > & | __z | ) | [inline] |
complex< _Tp > std::log | ( | const complex< _Tp > & | __z | ) | [inline] |
Return complex natural logarithm of z.
Definition at line 782 of file complex.
Referenced by std::generate_canonical(), std::log10(), std::gamma_distribution< _RealType >::operator()(), std::normal_distribution< _RealType >::operator()(), std::binomial_distribution< _IntType >::operator()(), std::poisson_distribution< _IntType >::operator()(), std::independent_bits_engine< _RandomNumberEngine, __w, _UIntType >::operator()(), and std::pow().
complex< _Tp > std::log10 | ( | const complex< _Tp > & | __z | ) | [inline] |
Return complex base 10 logarithm of z.
Definition at line 787 of file complex.
References std::log().
_Tp std::norm | ( | const complex< _Tp > & | __z | ) | [inline] |
Return z magnitude squared.
Definition at line 654 of file complex.
Referenced by std::complex< _Tp >::operator/=().
bool std::operator!= | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
bool std::operator!= | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
bitset<_Nb> std::operator& | ( | const bitset< _Nb > & | __x, | |
const bitset< _Nb > & | __y | |||
) | [inline] |
complex<_Tp> std::operator* | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex<_Tp> std::operator* | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
complex<_Tp> std::operator* | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex< _Tp > & std::complex< _Tp >::operator*= | ( | const complex< _Up > & | __z | ) | [inline, inherited] |
complex< _Tp > & std::complex< _Tp >::operator*= | ( | const _Tp & | __t | ) | [inline, inherited] |
complex<_Tp> std::operator+ | ( | const complex< _Tp > & | __x | ) | [inline] |
complex<_Tp> std::operator+ | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex<_Tp> std::operator+ | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
complex<_Tp> std::operator+ | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex< _Tp > & std::complex< _Tp >::operator+= | ( | const complex< _Up > & | __z | ) | [inline, inherited] |
complex<_Tp> std::operator- | ( | const complex< _Tp > & | __x | ) | [inline] |
complex<_Tp> std::operator- | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex<_Tp> std::operator- | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
complex<_Tp> std::operator- | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex< _Tp > & std::complex< _Tp >::operator-= | ( | const complex< _Up > & | __z | ) | [inline, inherited] |
complex<_Tp> std::operator/ | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex<_Tp> std::operator/ | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
complex<_Tp> std::operator/ | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex< _Tp > & std::complex< _Tp >::operator/= | ( | const complex< _Up > & | __z | ) | [inline, inherited] |
complex< _Tp > & std::complex< _Tp >::operator/= | ( | const _Tp & | __t | ) | [inline, inherited] |
std::basic_ostream<_CharT, _Traits>& std::operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, | |
const bitset< _Nb > & | __x | |||
) | [inline] |
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __out, | |
_CharT | __c | |||
) | [inline] |
Character inserters.
out | An output stream. | |
c | A character. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts a single character and any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
If c is of type char
and the character type of the stream is not char
, the character is widened before insertion.
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __out, | |
char | __c | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<char, _Traits>& std::operator<< | ( | basic_ostream< char, _Traits > & | __out, | |
char | __c | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<char, _Traits>& std::operator<< | ( | basic_ostream< char, _Traits > & | __out, | |
signed char | __c | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<char, _Traits>& std::operator<< | ( | basic_ostream< char, _Traits > & | __out, | |
unsigned char | __c | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __out, | |
const _CharT * | __s | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream< _CharT, _Traits > & std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __out, | |
const char * | __s | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
Definition at line 321 of file ostream.tcc.
References std::ios_base::badbit.
basic_ostream<char, _Traits>& std::operator<< | ( | basic_ostream< char, _Traits > & | __out, | |
const char * | __s | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<char, _Traits>& std::operator<< | ( | basic_ostream< char, _Traits > & | __out, | |
const signed char * | __s | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<char, _Traits>& std::operator<< | ( | basic_ostream< char, _Traits > & | __out, | |
const unsigned char * | __s | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
Behaves like one of the formatted arithmetic inserters described in std::basic_ostream. After constructing a sentry object with good status, this function inserts traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __os, | |
const complex< _Tp > & | __x | |||
) | [inline] |
Insertion operator for complex values.
Definition at line 519 of file complex.
References std::ios_base::flags(), std::basic_ios< _CharT, _Traits >::imbue(), std::ios_base::precision(), and std::basic_ostringstream< _CharT, _Traits, _Alloc >::str().
complex< _Tp > & std::complex< _Tp >::operator= | ( | const complex< _Up > & | __z | ) | [inline, inherited] |
complex< _Tp > & std::complex< _Tp >::operator= | ( | const _Tp & | __t | ) | [inline, inherited] |
bool std::operator== | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
bool std::operator== | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
bool std::operator== | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
std::basic_istream<_CharT, _Traits>& std::operator>> | ( | std::basic_istream< _CharT, _Traits > & | __is, | |
bitset< _Nb > & | __x | |||
) | [inline] |
Global I/O operators for bitsets.
Direct I/O between streams and bitsets is supported. Output is straightforward. Input will skip whitespace, only accept '0' and '1' characters, and will only extract as many digits as the bitset will hold.
Definition at line 1386 of file bitset.
References std::basic_string< _CharT, _Traits, _Alloc >::empty(), std::basic_string< _CharT, _Traits, _Alloc >::push_back(), std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_ios< _CharT, _Traits >::setstate(), and std::basic_ios< _CharT, _Traits >::widen().
basic_istream< _CharT, _Traits > & std::operator>> | ( | basic_istream< _CharT, _Traits > & | __in, | |
_CharT & | __c | |||
) | [inline] |
Character extractors.
in | An input stream. | |
c | A character reference. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts a character (if one is available) and stores it in c. Otherwise, sets failbit in the input stream.
Definition at line 903 of file istream.tcc.
References std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
basic_istream<char, _Traits>& std::operator>> | ( | basic_istream< char, _Traits > & | __in, | |
unsigned char & | __c | |||
) | [inline] |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts up to n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of
@c char_type that can store a terminating @c eos." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
basic_istream<char, _Traits>& std::operator>> | ( | basic_istream< char, _Traits > & | __in, | |
signed char & | __c | |||
) | [inline] |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts up to n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of
@c char_type that can store a terminating @c eos." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
basic_istream< _CharT, _Traits > & std::operator>> | ( | basic_istream< _CharT, _Traits > & | __in, | |
_CharT * | __s | |||
) | [inline] |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts up to n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of
@c char_type that can store a terminating @c eos." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
Definition at line 935 of file istream.tcc.
References std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::getloc(), std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::setstate(), and std::ios_base::width().
basic_istream<char>& std::operator>> | ( | basic_istream< char > & | __in, | |
char * | __s | |||
) | [inline] |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts up to n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of
@c char_type that can store a terminating @c eos." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
basic_istream<char, _Traits>& std::operator>> | ( | basic_istream< char, _Traits > & | __in, | |
unsigned char * | __s | |||
) | [inline] |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts up to n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of
@c char_type that can store a terminating @c eos." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
basic_istream<char, _Traits>& std::operator>> | ( | basic_istream< char, _Traits > & | __in, | |
signed char * | __s | |||
) | [inline] |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
Behaves like one of the formatted arithmetic extractors described in std::basic_istream. After constructing a sentry object with good status, this function extracts up to n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of
@c char_type that can store a terminating @c eos." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
basic_istream<_CharT, _Traits>& std::operator>> | ( | basic_istream< _CharT, _Traits > & | __is, | |
complex< _Tp > & | __x | |||
) | [inline] |
Extraction operator for complex values.
Definition at line 486 of file complex.
References std::ios_base::failbit, std::basic_istream< _CharT, _Traits >::putback(), and std::basic_ios< _CharT, _Traits >::setstate().
bitset<_Nb> std::operator^ | ( | const bitset< _Nb > & | __x, | |
const bitset< _Nb > & | __y | |||
) | [inline] |
bitset<_Nb> std::operator| | ( | const bitset< _Nb > & | __x, | |
const bitset< _Nb > & | __y | |||
) | [inline] |
complex< _Tp > std::polar | ( | const _Tp & | __rho, | |
const _Tp & | __theta = 0 | |||
) | [inline] |
Return complex with magnitude rho and angle theta.
Definition at line 662 of file complex.
References std::cos(), and std::sin().
Referenced by std::pow().
complex< _Tp > std::pow | ( | const _Tp & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
Return x to the y'th power.
Definition at line 1009 of file complex.
References std::log(), std::polar(), and std::pow().
complex< _Tp > std::pow | ( | const complex< _Tp > & | __x, | |
const complex< _Tp > & | __y | |||
) | [inline] |
complex< _Tp > std::pow | ( | const complex< _Tp > & | __x, | |
const _Tp & | __y | |||
) | [inline] |
Return x to the y'th power.
Definition at line 964 of file complex.
References std::exp(), std::log(), and std::polar().
Referenced by std::gamma_distribution< _RealType >::operator()(), and std::pow().
complex< _Tp > std::sin | ( | const complex< _Tp > & | __z | ) | [inline] |
complex< _Tp > std::sinh | ( | const complex< _Tp > & | __z | ) | [inline] |
complex< _Tp > std::sqrt | ( | const complex< _Tp > & | __z | ) | [inline] |
Return complex square root of z.
Definition at line 891 of file complex.
Referenced by std::normal_distribution< _RealType >::operator()().
complex< _Tp > std::tan | ( | const complex< _Tp > & | __z | ) | [inline] |