CXXR's extension of CR's Rcomplex.
More...
#include <ComplexVector.h>
Inherits Rcomplex.
List of all members.
Public Member Functions |
| Complex () |
| Default constructor.
|
| Complex (double rl, double im=0.0) |
| Primary constructor.
|
Complex & | operator= (double rhs) |
| Assignment from double.
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
Additional Inherited Members |
double | r |
double | i |
Detailed Description
CXXR's extension of CR's Rcomplex.
This class is a wrapper around the C struct Rcomplex defined by CR.
- Note:
- Backwards compatibility requires that
sizeof(Complex) == sizeof(Rcomplex)
.
Constructor & Destructor Documentation
CXXR::Complex::Complex |
( |
| ) |
|
|
inline |
Default constructor.
Leaves data fields uninitialised.
CXXR::Complex::Complex |
( |
double |
rl, |
|
|
double |
im = 0.0 |
|
) |
| |
|
inline |
Primary constructor.
- Parameters:
-
rl | Real part. |
im | Imaginary part. |
Member Function Documentation
Complex& CXXR::Complex::operator= |
( |
double |
rhs | ) |
|
|
inline |
Assignment from double.
- Parameters:
-
- Returns:
- Reference to this object.
The documentation for this struct was generated from the following file: