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 | |
SymMatrix3 () | |
Constructor. | |
SymMatrix3 (const util::Point &diagonal) | |
Constructor. | |
SymMatrix3 (const std::vector< double > &m) | |
Constructor. | |
SymMatrix3 (const std::vector< std::vector< double > > &m) | |
Constructor. | |
SymMatrix3 (const Matrix3 &m) | |
Constructor. | |
SymMatrix3 (const SymMatrix3 &m) | |
Constructor. | |
std::string | printStr (int nt=0, int lvl=0) const |
Returns the string containing printable information about the object. | |
void | print (int nt=0, int lvl=0) const |
Prints the information about the object. | |
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. | |
float & | get (size_t i) |
Returns row of matrix. | |
const float & | get (size_t i) const |
Returns row of matrix. | |
void | copy (double m[6]) const |
Copy. | |
util::Point | dot (const util::Point &v) |
Computes the dot product of this matrix with another vector. | |
std::vector< double > | dot (const std::vector< double > &v) const |
Computes the dot product of this matrix with another vector. | |
SymMatrix3 | transpose () const |
Computes the tranpose of matrix. | |
double | det () const |
Computes the determinant of matrix. | |
SymMatrix3 | inv () const |
Computes the determinant of matrix. | |
Data Fields | |
Data members | |
0 - xx component 1 - yy component 2 - zz component 3 - yz component 4 - xz component 5 - xy component | |
float | d_data [6] {} |
data | |
|
inline |
|
inline |
Constructor.
diagonal | Diagonal vector |
Definition at line 295 of file matrix.h.
References d_data, util::Point::d_x, util::Point::d_y, and util::Point::d_z.
|
inline |
|
inline |
Constructor.
m | Matrix |
Definition at line 326 of file matrix.h.
References d_data.
|
inline |
Constructor.
m | Matrix |
Definition at line 341 of file matrix.h.
References d_data.
|
inline |
|
inline |
|
inline |
Computes the determinant of matrix.
Definition at line 484 of file matrix.h.
Referenced by inv().
|
inline |
Computes the dot product of this matrix with another vector.
v | A vector |
Definition at line 460 of file matrix.h.
|
inline |
|
inline |
|
inline |
|
inline |
Computes the determinant of matrix.
Definition at line 495 of file matrix.h.
References det(), and SymMatrix3().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Prints the information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Definition at line 390 of file matrix.h.
References printStr().
|
inline |
Returns the string containing printable information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Definition at line 369 of file matrix.h.
Referenced by print().
|
inline |
float util::SymMatrix3::d_data[6] {} |
data
Definition at line 273 of file matrix.h.
Referenced by copy(), get(), get(), operator()(), operator()(), SymMatrix3(), SymMatrix3(), SymMatrix3(), SymMatrix3(), SymMatrix3(), and SymMatrix3().