![]() |
NLMech
0.1.0
|
A structure to represent 3d matrices. More...
#include <matrix.h>

Public Member Functions | |
| void | copy (double m[6]) const |
| Copy. More... | |
| double | det () const |
| Computes the determinant of matrix. More... | |
| std::vector< double > | dot (const std::vector< double > &v) const |
| Computes the dot product of this matrix with another vector. More... | |
| util::Point3 | dot (const util::Point3 &v) |
| Computes the dot product of this matrix with another vector. More... | |
| float & | get (size_t i) |
| Return the i-th element. More... | |
| const float & | get (size_t i) const |
| Return the i-th element. More... | |
| SymMatrix3 | inv () const |
| Computes the determinant of matrix. More... | |
| Point3 | operator() (size_t i) |
| Access operator of the i-th element. More... | |
| Point3 | operator() (size_t i) const |
| Access operator of the i-th element. More... | |
| float & | operator() (size_t i, size_t j) |
| Access operator of the Matrix element M(i,j) More... | |
| const float & | operator() (size_t i, size_t j) const |
| Access operator of the Matrix element M(i,j) More... | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information. More... | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Prints the information. More... | |
| SymMatrix3 () | |
| Constructor. | |
| SymMatrix3 (const Matrix3 &m) | |
| Constructor. More... | |
| SymMatrix3 (const std::vector< double > &m) | |
| Constructor. More... | |
| SymMatrix3 (const std::vector< std::vector< double >> &m) | |
| Constructor. More... | |
| SymMatrix3 (const SymMatrix3 &m) | |
| Constructor. More... | |
| SymMatrix3 (const util::Point3 &diagonal) | |
| Constructor. More... | |
| SymMatrix3 | transpose () const |
| Computes the transpose of matrix. More... | |
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 | |
A structure to represent 3d matrices.
|
inline |
Constructor.
| diagonal | Diagonal vector |
|
inline |
Constructor.
| m | Matrix in vector template |
|
inline |
Constructor.
| m | Matrix in vector template |
|
inline |
Constructor.
| m | Matrix in vector template |
|
inline |
Constructor.
| m | Matrix in vector template |
|
inline |
Copy.
warning
| m | Matrix |
|
inline |
Computes the determinant of matrix.
Referenced by inv().

|
inline |
Computes the dot product of this matrix with another vector.
| v | A vector |
|
inline |
Computes the dot product of this matrix with another vector.
| v | A vector |
|
inline |
Return the i-th element.
| i | Index |
|
inline |
Return the i-th element.
| i | Index |
|
inline |
Computes the determinant of matrix.

|
inline |
Access operator of the i-th element.
| i | Index i |
|
inline |
Access operator of the i-th element.
| i | Index i |
|
inline |
Access operator of the Matrix element M(i,j)
| i | Index i |
| j | Index j |
|
inline |
Access operator of the Matrix element M(i,j)
| i | Index i |
| j | Index j |
|
inline |
Prints the information.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |

|
inline |
Prints the information.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Referenced by print().

|
inline |
Computes the transpose of matrix.