|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class can be used like a reference for complex_float objects so that we can iterate over a vector (for example) of them. More...
#include <complex_float.hpp>


Public Member Functions | |
| complex_float_ref (float *dat) | |
| We use this in constructing complex_float_ptr objects. More... | |
| operator gsl_complex_float () const | |
Make sure this is convertible to gsl_complex_float. More... | |
| operator complex_float () const | |
Make sure this is convertible to complex_float. More... | |
| complex_float_ref () | |
| The default constructor is only really useful for assigning to. More... | |
| complex_float_ref (complex_float &z) | |
| Make sure we can construct from a complex_float. More... | |
| complex_float_ref & | operator= (complex_float const &z) |
| Assignment from complex_float. 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... | |
Protected Attributes | |
| float * | dat |
| The data. More... | |
This class can be used like a reference for complex_float objects so that we can iterate over a vector (for example) of them.
Definition at line 203 of file complex_float.hpp.
|
inline |
We use this in constructing complex_float_ptr objects.
| dat | A pointer to the data |
Definition at line 214 of file complex_float.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 233 of file complex_float.hpp.
|
inline |
Make sure we can construct from a complex_float.
| z | The complex_float to construct from |
Definition at line 238 of file complex_float.hpp.
|
inline |
C++ version of GSL_IMAG().
this Definition at line 264 of file complex_float.hpp.
|
inline |
Make sure this is convertible to complex_float.
This is not ideal because it copies twice. But it gets round the problem that a gsl_complex_float must contain constant data.
complex_float Definition at line 227 of file complex_float.hpp.
References dat.
|
inline |
Make sure this is convertible to gsl_complex_float.
This is not ideal because it copies twice. But it gets round the problem that a gsl_complex_float must contain constant data.
gsl_complex_float Definition at line 220 of file complex_float.hpp.
References dat.
|
inline |
Assignment from complex_float.
| z | The complex_float to assign from |
Definition at line 246 of file complex_float.hpp.
References dat.
|
inline |
C++ version of GSL_REAL().
this Definition at line 259 of file complex_float.hpp.
|
inline |
C++ version of GSL_SET_COMPLEX().
| x | Real part |
| y | Imaginary part |
Definition at line 254 of file complex_float.hpp.
|
inline |
C++ version of GSL_SET_IMAG().
| y | The new imaginary part |
Definition at line 274 of file complex_float.hpp.
|
inline |
C++ version of GSL_SET_REAL().
| x | The new real part |
Definition at line 269 of file complex_float.hpp.
|
protected |
The data.
Never initialised or destroyed within the class. Always precisely two elements.
Definition at line 208 of file complex_float.hpp.
Referenced by operator complex_float(), operator gsl_complex_float(), and operator=().