|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class handles complex_long_double numbers. More...
#include <complex_long_double.hpp>


Public Member Functions | |
| complex_long_double () | |
| The default constructor is only really useful for assigning to. More... | |
| complex_long_double (long double *dat) | |
| Allow construction from raw data. More... | |
| complex_long_double (long double const real, long double const imag) | |
| Allow construction from real and imaginary values. More... | |
| complex_long_double (std::complex< long double > const &z) | |
| Allow construction from a std::complex<long double>. More... | |
| complex_long_double (gsl_complex_long_double const &z) | |
| Constructor from base class. More... | |
| operator std::complex< long double > () const | |
| Convert to std::complex<long double> More... | |
| gsl_complex_long_double & | get () |
| Get the base class object. More... | |
| gsl_complex_long_double const & | get () const |
| Get the base class object. More... | |
| void | set_complex_long_double (long double x, long double y) |
| C++ version of GSL_SET_COMPLEX(). More... | |
| long double | real () const |
| C++ version of GSL_REAL(). More... | |
| long double | imag () const |
| C++ version of GSL_IMAG(). More... | |
| void | set_real (long double x) |
| C++ version of GSL_SET_REAL(). More... | |
| void | set_imag (long double y) |
| C++ version of GSL_SET_IMAG(). More... | |
| bool | operator== (complex_long_double const &z) const |
| A complex_long_double object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator!= (complex_long_double const &z) const |
| A complex_long_double object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator< (complex_long_double const &z) const |
| A complex_long_double object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator> (complex_long_double const &z) const |
| A complex_long_double object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator<= (complex_long_double const &z) const |
| A complex_long_double object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator>= (complex_long_double const &z) const |
| A complex_long_double object must be less than comparable so that it can be used as a container value type. More... | |
Static Public Member Functions | |
| static complex_long_double | rect (long double x, long double y) |
| C++ version of gsl_complex_long_double_rect(). More... | |
| static complex_long_double | polar (long double r, long double theta) |
| C++ version of gsl_complex_long_double_rect(). More... | |
Friends | |
| class | complex_long_double_ptr |
| class | complex_long_double_ref |
| class | vector_complex_long_double |
| class | matrix_complex_long_double |
This class handles complex_long_double numbers.
There is an ambiguity in translating gsl_complex_long_double to C++: gsl_complex_long_double is a struct and so should be represented by a C++ class. But gsl_complex_long_double is also used like a namespace and so it would be nice to have a C++ namespace gsl:: complex_long_double. However, we cannot have both. The compromise is to use static complex_long_double class functions. But, since we cannot use
and similar namespace operations with gsl::complex_long_double, we also define a namespace gsl::cpx_long_double with the same functions, again defined inline for efficiency.
Definition at line 42 of file complex_long_double.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 52 of file complex_long_double.hpp.
|
inlineexplicit |
Allow construction from raw data.
This is mainly for use by the container classes.
| dat | Raw data |
Definition at line 57 of file complex_long_double.hpp.
|
inline |
Allow construction from real and imaginary values.
| real | The real part. |
| imag | The imaginary part. |
Definition at line 65 of file complex_long_double.hpp.
|
inline |
Allow construction from a std::complex<long double>.
| z | The std::complex |
Definition at line 73 of file complex_long_double.hpp.
|
inline |
Constructor from base class.
| z | A gsl_complex_long_double |
Definition at line 84 of file complex_long_double.hpp.
|
inline |
Get the base class object.
Definition at line 106 of file complex_long_double.hpp.
|
inline |
Get the base class object.
Definition at line 111 of file complex_long_double.hpp.
|
inline |
C++ version of GSL_IMAG().
this Definition at line 142 of file complex_long_double.hpp.
Referenced by complex_long_double().
|
inlineexplicit |
Convert to std::complex<long double>
Definition at line 93 of file complex_long_double.hpp.
|
inline |
A complex_long_double object must be less than comparable so that it can be used as a container value type.
This is the inequality operator.
| z | Another complex_long_double |
false or true according as this equals z Definition at line 166 of file complex_long_double.hpp.
|
inline |
A complex_long_double object must be less than comparable so that it can be used as a container value type.
This is the (lexicographic) less than operator.
| z | Another complex_long_double |
true or false according as this is less than z Definition at line 173 of file complex_long_double.hpp.
|
inline |
A complex_long_double object must be less than comparable so that it can be used as a container value type.
This is the (lexicographic) less than or equal to operator.
| z | Another complex_long_double |
true or false according as this is less than or equal to z Definition at line 189 of file complex_long_double.hpp.
|
inline |
A complex_long_double object must be less than comparable so that it can be used as a container value type.
This is the equality operator.
| z | Another complex_long_double |
true or false according as this equals z Definition at line 159 of file complex_long_double.hpp.
|
inline |
A complex_long_double object must be less than comparable so that it can be used as a container value type.
This is the (lexicographic) greater than operator.
| z | Another complex_long_double |
true or false according as this is greater than than z Definition at line 181 of file complex_long_double.hpp.
|
inline |
A complex_long_double object must be less than comparable so that it can be used as a container value type.
This is the (lexicographic) greater than or equal to operator.
| z | Another complex_long_double |
true or false according as this is greater than or equal to z Definition at line 196 of file complex_long_double.hpp.
|
inlinestatic |
C++ version of gsl_complex_long_double_rect().
| r | The magnitude |
| theta | The argument |
Definition at line 125 of file complex_long_double.hpp.
References gsl::cpx::cos(), and gsl::cpx::sin().
Referenced by gsl::cpx_long_double::polar().
|
inline |
C++ version of GSL_REAL().
this Definition at line 137 of file complex_long_double.hpp.
Referenced by complex_long_double().
|
inlinestatic |
C++ version of gsl_complex_long_double_rect().
| x | Real part |
| y | Imaginary part |
Definition at line 118 of file complex_long_double.hpp.
Referenced by gsl::cpx_long_double::rect().
|
inline |
C++ version of GSL_SET_COMPLEX().
| x | Real part |
| y | Imaginary part |
Definition at line 132 of file complex_long_double.hpp.
|
inline |
C++ version of GSL_SET_IMAG().
| y | The new imaginary part |
Definition at line 152 of file complex_long_double.hpp.
|
inline |
C++ version of GSL_SET_REAL().
| x | The new real part |
Definition at line 147 of file complex_long_double.hpp.
|
friend |
Definition at line 43 of file complex_long_double.hpp.
|
friend |
Definition at line 44 of file complex_long_double.hpp.
|
friend |
Definition at line 46 of file complex_long_double.hpp.
|
friend |
Definition at line 45 of file complex_long_double.hpp.