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


Public Member Functions | |
| complex_ref (double *dat) | |
| We use this in constructing complex_ptr objects. More... | |
| operator gsl_complex () const | |
Make sure this is convertible to gsl_complex. More... | |
| operator complex () const | |
Make sure this is convertible to complex. More... | |
| complex_ref () | |
| The default constructor is only really useful for assigning to. More... | |
| complex_ref (complex &z) | |
| Make sure we can construct from a complex. More... | |
| complex_ref & | operator= (complex const &z) |
| Assignment from complex. More... | |
| void | set_complex (double x, double y) |
| C++ version of GSL_SET_COMPLEX(). More... | |
| double | real () const |
| C++ version of GSL_REAL(). More... | |
| double | imag () const |
| C++ version of GSL_IMAG(). More... | |
| void | set_real (double x) |
| C++ version of GSL_SET_REAL(). More... | |
| void | set_imag (double y) |
| C++ version of GSL_SET_IMAG(). More... | |
Protected Attributes | |
| double * | dat |
| The data. More... | |
This class can be used like a reference for complex objects so that we can iterate over a vector (for example) of them.
Definition at line 613 of file complex.hpp.
|
inline |
We use this in constructing complex_ptr objects.
| dat | A pointer to the data |
Definition at line 624 of file complex.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 643 of file complex.hpp.
|
inline |
Make sure we can construct from a complex.
| z | The complex to construct from |
Definition at line 648 of file complex.hpp.
|
inline |
|
inline |
Make sure this is convertible to complex.
This is not ideal because it copies twice. But it gets round the problem that a gsl_complex must contain constant data.
complex Definition at line 637 of file complex.hpp.
References dat.
|
inline |
Make sure this is convertible to gsl_complex.
This is not ideal because it copies twice. But it gets round the problem that a gsl_complex must contain constant data.
gsl_complex Definition at line 630 of file complex.hpp.
References dat.
|
inline |
Assignment from complex.
| z | The complex to assign from |
Definition at line 656 of file complex.hpp.
References dat.
|
inline |
|
inline |
C++ version of GSL_SET_COMPLEX().
| x | Real part |
| y | Imaginary part |
Definition at line 664 of file complex.hpp.
|
inline |
C++ version of GSL_SET_IMAG().
| y | The new imaginary part |
Definition at line 684 of file complex.hpp.
|
inline |
C++ version of GSL_SET_REAL().
| x | The new real part |
Definition at line 679 of file complex.hpp.
|
protected |
The data.
Never initialised or destroyed within the class. Always precisely two elements.
Definition at line 618 of file complex.hpp.
Referenced by operator complex(), operator gsl_complex(), and operator=().