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


Public Member Functions | |
| complex_float () | |
| The default constructor is only really useful for assigning to. More... | |
| complex_float (float *dat) | |
| Allow construction from raw data. More... | |
| complex_float (float const real, float const imag) | |
| Allow construction from real and imaginary values. More... | |
| complex_float (std::complex< float > const &z) | |
| Allow construction from a std::complex<float>. More... | |
| complex_float (gsl_complex_float const &z) | |
| Constructor from base class. More... | |
| operator std::complex< float > () const | |
| Convert to std::complex<float> More... | |
| gsl_complex_float & | get () |
| Get the base class object. More... | |
| gsl_complex_float const & | get () const |
| Get the base class object. More... | |
| void | set_complex_float (float x, float y) |
| C++ version of GSL_SET_COMPLEX(). More... | |
| float | real () const |
| C++ version of GSL_REAL(). More... | |
| float | imag () const |
| C++ version of GSL_IMAG(). More... | |
| void | set_real (float x) |
| C++ version of GSL_SET_REAL(). More... | |
| void | set_imag (float y) |
| C++ version of GSL_SET_IMAG(). More... | |
| bool | operator== (complex_float const &z) const |
| A complex_float object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator!= (complex_float const &z) const |
| A complex_float object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator< (complex_float const &z) const |
| A complex_float object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator> (complex_float const &z) const |
| A complex_float object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator<= (complex_float const &z) const |
| A complex_float object must be less than comparable so that it can be used as a container value type. More... | |
| bool | operator>= (complex_float const &z) const |
| A complex_float object must be less than comparable so that it can be used as a container value type. More... | |
Static Public Member Functions | |
| static complex_float | rect (float x, float y) |
| C++ version of gsl_complex_float_rect(). More... | |
| static complex_float | polar (float r, float theta) |
| C++ version of gsl_complex_float_rect(). More... | |
Friends | |
| class | complex_float_ptr |
| class | complex_float_ref |
| class | vector_complex_float |
| class | matrix_complex_float |
This class handles complex_float numbers.
There is an ambiguity in translating gsl_complex_float to C++: gsl_complex_float is a struct and so should be represented by a C++ class. But gsl_complex_float is also used like a namespace and so it would be nice to have a C++ namespace gsl:: complex_float. However, we cannot have both. The compromise is to use static complex_float class functions. But, since we cannot use
and similar namespace operations with gsl::complex_float, we also define a namespace gsl::cpx_float with the same functions, again defined inline for efficiency.
Definition at line 42 of file complex_float.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 52 of file complex_float.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_float.hpp.
|
inline |
Allow construction from real and imaginary values.
| real | The real part. |
| imag | The imaginary part. |
Definition at line 65 of file complex_float.hpp.
|
inline |
Allow construction from a std::complex<float>.
| z | The std::complex_float |
Definition at line 73 of file complex_float.hpp.
|
inline |
Constructor from base class.
| z | A gsl_complex_float |
Definition at line 84 of file complex_float.hpp.
|
inline |
Get the base class object.
Definition at line 106 of file complex_float.hpp.
Referenced by gsl::blas::caxpy(), gsl::blas::cdotc(), gsl::blas::cdotu(), gsl::blas::cgemm(), gsl::blas::cgemv(), gsl::blas::cgerc(), gsl::blas::cgeru(), gsl::blas::chemm(), gsl::blas::chemv(), gsl::blas::cher2(), gsl::blas::cher2k(), gsl::blas::cscal(), gsl::blas::csymm(), gsl::blas::csyr2k(), gsl::blas::csyrk(), gsl::blas::ctrmm(), and gsl::blas::ctrsm().
|
inline |
Get the base class object.
Definition at line 111 of file complex_float.hpp.
|
inline |
C++ version of GSL_IMAG().
this Definition at line 142 of file complex_float.hpp.
Referenced by complex_float().
|
inlineexplicit |
Convert to std::complex<float>
Definition at line 93 of file complex_float.hpp.
|
inline |
A complex_float 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_float |
false or true according as this equals z Definition at line 166 of file complex_float.hpp.
|
inline |
A complex_float 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_float |
true or false according as this is less than z Definition at line 173 of file complex_float.hpp.
|
inline |
A complex_float 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_float |
true or false according as this is less than or equal to z Definition at line 189 of file complex_float.hpp.
|
inline |
A complex_float 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_float |
true or false according as this equals z Definition at line 159 of file complex_float.hpp.
|
inline |
A complex_float 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_float |
true or false according as this is greater than than z Definition at line 181 of file complex_float.hpp.
|
inline |
A complex_float 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_float |
true or false according as this is greater than or equal to z Definition at line 196 of file complex_float.hpp.
|
inlinestatic |
C++ version of gsl_complex_float_rect().
| r | The magnitude |
| theta | The argument |
Definition at line 125 of file complex_float.hpp.
References gsl::cpx::cos(), and gsl::cpx::sin().
Referenced by gsl::cpx_float::polar().
|
inline |
C++ version of GSL_REAL().
this Definition at line 137 of file complex_float.hpp.
Referenced by complex_float().
|
inlinestatic |
C++ version of gsl_complex_float_rect().
| x | Real part |
| y | Imaginary part |
Definition at line 118 of file complex_float.hpp.
Referenced by gsl::cpx_float::rect().
|
inline |
C++ version of GSL_SET_COMPLEX().
| x | Real part |
| y | Imaginary part |
Definition at line 132 of file complex_float.hpp.
|
inline |
C++ version of GSL_SET_IMAG().
| y | The new imaginary part |
Definition at line 152 of file complex_float.hpp.
|
inline |
C++ version of GSL_SET_REAL().
| x | The new real part |
Definition at line 147 of file complex_float.hpp.
|
friend |
Definition at line 43 of file complex_float.hpp.
|
friend |
Definition at line 44 of file complex_float.hpp.
|
friend |
Definition at line 46 of file complex_float.hpp.
|
friend |
Definition at line 45 of file complex_float.hpp.