PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Vector of complex numbers of size 4. More...
Public Member Functions | |
VectorComplex4D () | |
Default constructor. More... | |
VectorComplex4D (const VectorComplex4D &v) | |
Copy constructor. More... | |
VectorComplex4D (const VectorComplexD &v) | |
Copy constructor. More... | |
~VectorComplex4D () | |
Destructor. More... | |
virtual void | operator= (const VectorComplex4D &v) |
Operator =. More... | |
virtual VectorComplex4D | operator+ (const VectorComplex4D &rhs) |
Operator +. More... | |
virtual VectorComplex4D | operator- (const VectorComplex4D &rhs) |
Operator -. More... | |
virtual VectorComplex4D | operator* (const double &rhs) |
Operator * by real number (rhs). More... | |
virtual VectorComplex4D | 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 | |
VectorComplex4D | operator* (const double &lhs, VectorComplex4D &rhs) |
Operator * by real number (lhs). More... | |
VectorComplex4D | operator* (const std::complex< double > &lhs, VectorComplex4D &rhs) |
Operator * by complex number (lhs). More... | |
Vector of complex numbers of size 4.
This class represents a vector of complex double precision numbers. The size of this vector is 4.
NumA::VectorComplex4D::VectorComplex4D | ( | ) |
Default constructor.
NumA::VectorComplex4D::VectorComplex4D | ( | const VectorComplex4D & | v | ) |
Copy constructor.
v | Object to be copied. |
NumA::VectorComplex4D::VectorComplex4D | ( | const VectorComplexD & | v | ) |
Copy constructor.
v | Object to be copied. |
NumA::VectorComplex4D::~VectorComplex4D | ( | ) |
Destructor.
|
virtual |
Operator * by real number (rhs).
|
virtual |
Operator * by complex number (rhs).
|
virtual |
Operator +.
|
virtual |
Operator -.
|
virtual |
Operator =.
|
friend |
Operator * by real number (lhs).
|
friend |
Operator * by complex number (lhs).