CXXR (C++ R)
Public Member Functions
CXXR::Complex Struct Reference

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.
Complexoperator= (double rhs)
 Assignment from double.
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Additional Inherited Members

- Public Attributes inherited from Rcomplex
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:
rlReal part.
imImaginary part.

Member Function Documentation

Complex& CXXR::Complex::operator= ( double  rhs)
inline

Assignment from double.

Parameters:
rhsValue to be assigned.
Returns:
Reference to this object.

The documentation for this struct was generated from the following file: