3x3 matrix and related mathamatical operations
More...
|
| | Matrix3 () |
| | Construct a new Matrix 3 object to Identity matrix.
|
| | Matrix3 (const double &r11, const double &r12, const double &r13, const double &r21, const double &r22, const double &r23, const double &r31, const double &r32, const double &r33) |
| | Construct a new Matrix 3 object.
|
| void | Identity (void) |
| | Set a 3x3 matrix to identity matrix.
|
| void | Zero (void) |
| | Set all elements of a 3x3 matrix to zero.
|
| double | Det (void) const |
| | Calculate the determinant of a 3x3 matrix.
|
| Matrix3 | Transpose (void) const |
| | Transpose a 3x3 matrix.
|
| Matrix3 | Inverse (void) const |
| | Inverse a 3x3 matrix.
|
| Matrix3 & | operator= (const Matrix3 &m) |
| | Overload operator "=" for 3x3 matrices For example, assign mb = ma.
|
| Matrix3 & | operator+= (const Matrix3 &m) |
| | Overload operator "+=" for 3x3 matrices For example, mb += ma.
|
| Matrix3 & | operator-= (const Matrix3 &m) |
| | Overload operator "-=" for 3x3 matrices For example, mb -= ma.
|
| Matrix3 & | operator*= (const double &s) |
| | Overload operator "*=" for 3x3 matrix and a scalar For example, mb *= 3.0.
|
| Matrix3 & | operator/= (const double &s) |
| | Overload operator "/=" for 3x3 matrix and a scalar For example, mb /= 3.0.
|
| void | print (void) const |
| | Print a 3x3 matrix on screening.
|
| ModuleBase::matrix | to_matrix (void) const |
| | Change the form of a 3x3 matrix from that of class Matrix3 to that of class matrix.
|
3x3 matrix and related mathamatical operations
◆ Matrix3() [1/2]
| LCAO_domain::ModuleBase::Matrix3::Matrix3 |
( |
| ) |
|
|
inline |
Construct a new Matrix 3 object to Identity matrix.
◆ Matrix3() [2/2]
| LCAO_domain::ModuleBase::Matrix3::Matrix3 |
( |
const double & | r11, |
|
|
const double & | r12, |
|
|
const double & | r13, |
|
|
const double & | r21, |
|
|
const double & | r22, |
|
|
const double & | r23, |
|
|
const double & | r31, |
|
|
const double & | r32, |
|
|
const double & | r33 ) |
Construct a new Matrix 3 object.
- Parameters
-
| r11 | element r_ij: i_row, j_column |
| r12 | |
| r13 | |
| r21 | |
| r22 | |
| r23 | |
| r31 | |
| r32 | |
| r33 | |
◆ Det()
| double LCAO_domain::ModuleBase::Matrix3::Det |
( |
void | | ) |
const |
Calculate the determinant of a 3x3 matrix.
- Returns
- double
◆ Identity()
| void LCAO_domain::ModuleBase::Matrix3::Identity |
( |
void | | ) |
|
Set a 3x3 matrix to identity matrix.
◆ Inverse()
| Matrix3 LCAO_domain::ModuleBase::Matrix3::Inverse |
( |
void | | ) |
const |
Inverse a 3x3 matrix.
- Returns
- Matrix3
◆ operator*=()
| Matrix3 & LCAO_domain::ModuleBase::Matrix3::operator*= |
( |
const double & | s | ) |
|
Overload operator "*=" for 3x3 matrix and a scalar For example, mb *= 3.0.
- Parameters
-
- Returns
- Matrix3&
◆ operator+=()
| Matrix3 & LCAO_domain::ModuleBase::Matrix3::operator+= |
( |
const Matrix3 & | m | ) |
|
Overload operator "+=" for 3x3 matrices For example, mb += ma.
- Parameters
-
- Returns
- Matrix3&
◆ operator-=()
| Matrix3 & LCAO_domain::ModuleBase::Matrix3::operator-= |
( |
const Matrix3 & | m | ) |
|
Overload operator "-=" for 3x3 matrices For example, mb -= ma.
- Parameters
-
- Returns
- Matrix3&
◆ operator/=()
| Matrix3 & LCAO_domain::ModuleBase::Matrix3::operator/= |
( |
const double & | s | ) |
|
Overload operator "/=" for 3x3 matrix and a scalar For example, mb /= 3.0.
- Parameters
-
- Returns
- Matrix3&
◆ operator=()
| Matrix3 & LCAO_domain::ModuleBase::Matrix3::operator= |
( |
const Matrix3 & | m | ) |
|
Overload operator "=" for 3x3 matrices For example, assign mb = ma.
- Parameters
-
- Returns
- Matrix3&
◆ print()
| void LCAO_domain::ModuleBase::Matrix3::print |
( |
void | | ) |
const |
Print a 3x3 matrix on screening.
◆ to_matrix()
◆ Transpose()
| Matrix3 LCAO_domain::ModuleBase::Matrix3::Transpose |
( |
void | | ) |
const |
Transpose a 3x3 matrix.
- Returns
- Matrix3
◆ Zero()
| void LCAO_domain::ModuleBase::Matrix3::Zero |
( |
void | | ) |
|
Set all elements of a 3x3 matrix to zero.
◆ e11
| double LCAO_domain::ModuleBase::Matrix3::e11 |
element e_ij: i_row, j_column
◆ e12
| double LCAO_domain::ModuleBase::Matrix3::e12 |
◆ e13
| double LCAO_domain::ModuleBase::Matrix3::e13 |
◆ e21
| double LCAO_domain::ModuleBase::Matrix3::e21 |
◆ e22
| double LCAO_domain::ModuleBase::Matrix3::e22 |
◆ e23
| double LCAO_domain::ModuleBase::Matrix3::e23 |
◆ e31
| double LCAO_domain::ModuleBase::Matrix3::e31 |
◆ e32
| double LCAO_domain::ModuleBase::Matrix3::e32 |
◆ e33
| double LCAO_domain::ModuleBase::Matrix3::e33 |
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/lcao_nl_mu.cpp