QVectorC Class Reference

Inheritance diagram for QVectorC:

QObject

List of all members.


Detailed Description

complex vector

Class with limited functionalities since we do not need really complex numbers but only a tidy way to handle real and imaginary parts

Public Member Functions

 QVectorC ()
 default constructor
 QVectorC (const QVector &re, const QVector &im)
 QVectorC (const QVectorC &orig)
 copy constructor
 QVectorC (const QVector &vec)
 constructor from a single QVector
void SetArray (const double *re, const double *im, size_t size)
double Re (size_t i) const
 real part of a given element
double Im (size_t i) const
 imaginary part of a given element
QVector Re ()
 vector of real parts
QVector Im ()
 vector of imaginary parts
const QVectorRe () const
 vector of real parts. const version
const QVectorIm () const
 vector of imaginary parts const version
QVector SingleVector () const
 vector with real data first, im parts later
void SetRe (const QVector &Re)
 Set real part.
void SetIm (const QVector &Im)
 Set imag part.
QVector GetModulus () const
 Get r [z = r exp(j phi)].
QVector GetPhase () const
 Get phi [z = r exp(j phi)].
QVectorC operator* (const QVectorC &) const
size_t Size () const
 vector size of the real/imaginary parts
void Clear ()
 clear the vector

Private Attributes

QVector fRe
QVector fIm


Constructor & Destructor Documentation

QVectorC::QVectorC ( const QVector re,
const QVector im 
)

from two vectors

Parameters:
re real part
im imaginary part

QVectorC::QVectorC ( const QVectorC orig  ) 

copy constructor

Parameters:
orig original QVectorC

QVectorC::QVectorC ( const QVector vec  ) 

constructor from a single QVector

assumes input QVector has even number of members the first half is the real part, the second half the imaginary part


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:08 2010 for CUORE Software by  doxygen 1.5.6