PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Matrix of complex numbers of size 2x2. More...
Public Member Functions | |
MatrixComplex2D () | |
Default constructor. More... | |
MatrixComplex2D (const MatrixComplex2D &v) | |
Copy constructor. More... | |
MatrixComplex2D (const MatrixComplexD &v) | |
Copy constructor. More... | |
~MatrixComplex2D () | |
Destructor. More... | |
void | operator= (const MatrixComplex2D &rhs) |
Operator =. More... | |
MatrixComplex2D | operator+ (const MatrixComplex2D &rhs) |
Operator +. More... | |
MatrixComplex2D | operator- (const MatrixComplex2D &rhs) |
Operator -. More... | |
MatrixComplex2D | operator* (const double &rhs) |
Operator * by real number (rhs). More... | |
MatrixComplex2D | operator* (const std::complex< double > &rhs) |
Operator * by complex number (rhs). More... | |
Public Member Functions inherited from NumA::MatrixComplexD | |
MatrixComplexD () | |
Default constructor. More... | |
MatrixComplexD (const unsigned int n, const unsigned int m) | |
Assignemnt constructor. More... | |
MatrixComplexD (const MatrixComplexD &v) | |
Copy constructor. More... | |
virtual | ~MatrixComplexD () |
Destructor. More... | |
MatrixComplexD | Conjunct () const |
Get conjunction of matrix. More... | |
MatrixComplexD | Mult (const MatrixComplexD &v) const |
Multiply this with other matrix. More... | |
void | Clear () |
Clear vector (set std::complex<double>(0., 0.) to all elements). More... | |
void | MakeUnit () |
Make unit (set std::complex<double>(1., 0.) to diagonal elements). More... | |
void | operator= (const MatrixComplexD &rhs) |
Operator =. More... | |
MatrixComplexD | operator+ (const MatrixComplexD &rhs) |
Operator +. More... | |
MatrixComplexD | operator- (const MatrixComplexD &rhs) |
Operator -. More... | |
MatrixComplexD | operator* (const double &rhs) |
Operator * by real number (rhs). More... | |
MatrixComplexD | operator* (const std::complex< double > &rhs) |
Operator * by complex number (rhs). More... | |
unsigned int | GetNElements (const Dim v) const |
Get dim. More... | |
void | SetElement (const unsigned int i, const unsigned int j, const std::complex< double > value) |
Set element. More... | |
std::complex< double > | GetElement (const unsigned int i, const unsigned int j) const |
Get element. More... | |
Friends | |
MatrixComplex2D | operator* (const double &lhs, MatrixComplex2D &rhs) |
Operator * by real number (lhs). More... | |
MatrixComplex2D | operator* (const std::complex< double > &lhs, MatrixComplex2D &rhs) |
Operator * by complex number (lhs). More... | |
Additional Inherited Members | |
Public Types inherited from NumA::MatrixComplexD | |
enum | Dim { X = 1 , Y = 2 } |
Dimension index. More... | |
Matrix of complex numbers of size 2x2.
This class represents a matrix of complex double precision numbers. The size of this matrix is 2x2.
NumA::MatrixComplex2D::MatrixComplex2D | ( | ) |
Default constructor.
NumA::MatrixComplex2D::MatrixComplex2D | ( | const MatrixComplex2D & | v | ) |
Copy constructor.
v | Object to be copied. |
NumA::MatrixComplex2D::MatrixComplex2D | ( | const MatrixComplexD & | v | ) |
Copy constructor.
v | Object to be copied. |
NumA::MatrixComplex2D::~MatrixComplex2D | ( | ) |
Destructor.
MatrixComplex2D NumA::MatrixComplex2D::operator* | ( | const double & | rhs | ) |
Operator * by real number (rhs).
MatrixComplex2D NumA::MatrixComplex2D::operator* | ( | const std::complex< double > & | rhs | ) |
Operator * by complex number (rhs).
MatrixComplex2D NumA::MatrixComplex2D::operator+ | ( | const MatrixComplex2D & | rhs | ) |
Operator +.
MatrixComplex2D NumA::MatrixComplex2D::operator- | ( | const MatrixComplex2D & | rhs | ) |
Operator -.
void NumA::MatrixComplex2D::operator= | ( | const MatrixComplex2D & | rhs | ) |
Operator =.
|
friend |
Operator * by real number (lhs).
|
friend |
Operator * by complex number (lhs).