SIRIUS 7.5.0
Electronic structure library and applications
|
Handling of a 3x3 matrix of numerical data types. More...
#include <r3.hpp>
Public Member Functions | |
matrix () | |
Construct a zero matrix. More... | |
matrix (T mtrx__[3][3]) | |
Construct matrix form plain 3x3 array. More... | |
matrix (std::vector< std::vector< T > > src__) | |
Construct matrix from std::vector. More... | |
matrix (std::array< std::array< T, 3 >, 3 > src__) | |
template<typename U > | |
matrix (matrix< U > const &src__) | |
Copy constructor. More... | |
matrix (std::initializer_list< std::initializer_list< T > > mtrx__) | |
Construct matrix form std::initializer_list. More... | |
matrix< T > & | operator= (matrix< T > const &rhs) |
Assignment operator. More... | |
T & | operator() (const int i, const int j) |
T const & | operator() (const int i, const int j) const |
template<typename U > | |
auto | operator+ (matrix< U > const &b) const |
Sum of two matrices. More... | |
template<typename U > | |
auto & | operator+= (matrix< U > const &b) |
+= operator More... | |
template<typename U > | |
auto & | operator*= (U p) |
Multiply matrix by a scalar number. More... | |
T | det () const |
Return determinant of a matrix. More... | |
void | zero () |
Private Attributes | |
T | mtrx_ [3][3] |
Store matrix \( M_{ij} \) as mtrx[i][j] . More... | |
Handling of a 3x3 matrix of numerical data types.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |