PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Vector of complex numbers of size 2. More...
Public Member Functions | |
VectorComplex2D () | |
Default constructor. More... | |
VectorComplex2D (const VectorComplex2D &v) | |
Copy constructor. More... | |
VectorComplex2D (const VectorComplexD &v) | |
Copy constructor. More... | |
~VectorComplex2D () | |
Destructor. More... | |
void | operator= (const VectorComplex2D &v) |
Operator =. More... | |
VectorComplex2D | operator+ (const VectorComplex2D &rhs) |
Operator +. More... | |
VectorComplex2D | operator- (const VectorComplex2D &rhs) |
Operator -. More... | |
VectorComplex2D | operator* (const double &rhs) |
Operator * by real number (rhs). More... | |
VectorComplex2D | operator* (const std::complex< double > &rhs) |
Operator * by complex number (rhs). More... | |
Public Member Functions inherited from NumA::VectorComplexD | |
VectorComplexD () | |
Default constructor. More... | |
VectorComplexD (const unsigned int n) | |
Assignment constructor. More... | |
VectorComplexD (const VectorComplexD &v) | |
Copy constructor. More... | |
virtual | ~VectorComplexD () |
Destructor. More... | |
double | Mag () const |
Get magnitude of vector. More... | |
VectorComplexD | Conjunct () const |
Get conjunction of vector. More... | |
std::complex< double > | Dot (const VectorComplexD &v) const |
Scalar product of this and other vector. More... | |
void | Clear () |
Clear vector (set std::complex<double>(0., 0.) to all elements). More... | |
void | operator= (const VectorComplexD &rhs) |
Operator =. More... | |
VectorComplexD | operator+ (const VectorComplexD &rhs) |
Operator +. More... | |
VectorComplexD | operator- (const VectorComplexD &rhs) |
Operator -. More... | |
VectorComplexD | operator* (const double &rhs) |
Operator * by real number (rhs). More... | |
VectorComplexD | operator* (const std::complex< double > &rhs) |
Operator * by complex number (rhs). More... | |
unsigned int | GetNElements () const |
Get number of elements. More... | |
void | SetElement (const unsigned int i, const std::complex< double > &value) |
Set element. More... | |
std::complex< double > | GetElement (unsigned int i) const |
Get element. More... | |
Friends | |
VectorComplex2D | operator* (const double &lhs, VectorComplex2D &rhs) |
Operator * by real number (lhs). More... | |
VectorComplex2D | operator* (const std::complex< double > &lhs, VectorComplex2D &rhs) |
Operator * by complex number (lhs). More... | |
Vector of complex numbers of size 2.
This class represents a vector of complex double precision numbers. The size of this vector is 2.
NumA::VectorComplex2D::VectorComplex2D | ( | ) |
Default constructor.
NumA::VectorComplex2D::VectorComplex2D | ( | const VectorComplex2D & | v | ) |
Copy constructor.
v | Object to be copied. |
NumA::VectorComplex2D::VectorComplex2D | ( | const VectorComplexD & | v | ) |
Copy constructor.
v | Object to be copied. |
NumA::VectorComplex2D::~VectorComplex2D | ( | ) |
Destructor.
VectorComplex2D NumA::VectorComplex2D::operator* | ( | const double & | rhs | ) |
Operator * by real number (rhs).
VectorComplex2D NumA::VectorComplex2D::operator* | ( | const std::complex< double > & | rhs | ) |
Operator * by complex number (rhs).
VectorComplex2D NumA::VectorComplex2D::operator+ | ( | const VectorComplex2D & | rhs | ) |
Operator +.
VectorComplex2D NumA::VectorComplex2D::operator- | ( | const VectorComplex2D & | rhs | ) |
Operator -.
void NumA::VectorComplex2D::operator= | ( | const VectorComplex2D & | v | ) |
Operator =.
|
friend |
Operator * by real number (lhs).
|
friend |
Operator * by complex number (lhs).