![]() |
PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A structure to represent 3d matrices. More...
#include <matrix.h>
Public Member Functions | |
| Matrix3 () | |
| Constructor. | |
| Matrix3 (const util::Point &diagonal) | |
| Constructor. | |
| Matrix3 (const util::Point &a1, const util::Point &a2, const util::Point &a3) | |
| Constructor. | |
| Matrix3 (const std::vector< std::vector< double > > &m) | |
| Constructor. | |
| Matrix3 (const Matrix3 &m) | |
| Constructor. | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Prints the information. | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information. | |
| Point | operator() (size_t i) |
| Returns row of matrix. | |
| Point | operator() (size_t i) const |
| Returns row of matrix. | |
| float & | operator() (size_t i, size_t j) |
| Returns element of matrix. | |
| const float & | operator() (size_t i, size_t j) const |
| Returns element of matrix. | |
| util::Point | dot (const util::Point &v) |
| Computes the dot product between matrix and vector. | |
| std::vector< double > | dot (const std::vector< double > &v) const |
| Computes the dot product between matrix and vector. | |
| Matrix3 | transpose () const |
| Computes the tranpose of matrix. | |
| double | det () const |
| Computes the determinant of matrix. | |
| Matrix3 | inv () const |
| Computes the determinant of matrix. | |
Data Fields | |
Data members | |
| float | d_data [3][3] {} |
| data | |
|
inline |
Constructor.
Definition at line 34 of file matrix.h.
References d_data.
Referenced by inv(), and transpose().
|
inline |
Constructor.
| diagonal | Diagonal vector |
Definition at line 54 of file matrix.h.
References d_data, util::Point::d_x, util::Point::d_y, and util::Point::d_z.
|
inline |
Constructor.
| a1 | first row |
| a2 | second row |
| a3 | third row |
Definition at line 76 of file matrix.h.
References d_data, util::Point::d_x, util::Point::d_y, and util::Point::d_z.
|
inline |
|
inline |
|
inline |
Computes the determinant of matrix.
Definition at line 215 of file matrix.h.
Referenced by inv().
|
inline |
|
inline |
|
inline |
Computes the determinant of matrix.
Definition at line 226 of file matrix.h.
References det(), and Matrix3().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Prints the information.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 139 of file matrix.h.
References printStr().
|
inline |
Prints the information.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 118 of file matrix.h.
Referenced by print().
|
inline |
Computes the tranpose of matrix.
Definition at line 194 of file matrix.h.
References Matrix3().
| float util::Matrix3::d_data[3][3] {} |
data
Definition at line 27 of file matrix.h.
Referenced by Matrix3(), Matrix3(), Matrix3(), Matrix3(), Matrix3(), operator()(), operator()(), operator()(), and operator()().