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