26 #ifndef MECURYDPM_MATRIX_H
27 #define MECURYDPM_MATRIX_H
@ A
Definition: StatisticsVector.h:42
Implementation of a 3D matrix.
Definition: Matrix.h:38
void setZero()
Sets all elements to zero.
Definition: Matrix.cc:75
Matrix3D & operator+=(const Matrix3D &A)
Matrix addition.
Definition: Matrix.cc:241
Mdouble YX
Definition: Matrix.h:43
Matrix3D & operator/=(Mdouble a)
Scalar division.
Definition: Matrix.cc:279
Vec3D diag() const
The diagonal elements.
Definition: Matrix.cc:93
Matrix3D operator*(Mdouble a) const
Scalar multiplication.
Definition: Matrix.cc:164
friend std::istream & operator>>(std::istream &is, Matrix3D &A)
Add elements to istream.
Definition: Matrix.cc:230
Matrix3D operator-(const Matrix3D &A) const
Matrix subtraction.
Definition: Matrix.cc:128
double trace() const
Sum of the diagonal elements.
Definition: Matrix.cc:84
Mdouble ZX
Definition: Matrix.h:43
static Matrix3D dyadic(const Vec3D &a, const Vec3D &b)
Calculates the dyadic product of a two Vec3D: .
Definition: Matrix.cc:323
Mdouble XY
Definition: Matrix.h:43
Mdouble YY
Definition: Matrix.h:43
Matrix3D operator/(Mdouble a) const
Scalar division.
Definition: Matrix.cc:203
Mdouble ZY
Definition: Matrix.h:43
Mdouble ZZ
Definition: Matrix.h:43
Mdouble YZ
Definition: Matrix.h:43
Matrix3D & operator-=(const Matrix3D &A)
Matrix substraction.
Definition: Matrix.cc:260
friend std::ostream & operator<<(std::ostream &os, const Matrix3D &A)
Add elements to ostream.
Definition: Matrix.cc:216
static Matrix3D inverse(const Matrix3D &A)
Computes the inverse of a matrix.
Definition: Matrix.cc:349
Matrix3D getCylindricalTensorField(const Vec3D &p) const
Returns the matrix in cylindrical coordinates.
Definition: Matrix.cc:394
Mdouble XZ
Definition: Matrix.h:43
Matrix3D operator+(const Matrix3D &A) const
Matrix addition.
Definition: Matrix.cc:115
Mdouble XX
all nine matrix elements
Definition: Matrix.h:43
Vec3D ldivide(const Vec3D &b)
A.ldivide(b) computes the solution x to A*x=b.
Definition: Matrix.cc:373
static Matrix3D square(const Matrix3D &A)
Calculates the pointwise square.
Definition: Matrix.cc:298
static Matrix3D cross(const Vec3D &a, const Matrix3D &b)
'Special' cross product; CP of vector with each column of a matrix
Definition: Matrix.cc:337
double deviator() const
Deviator.
Definition: Matrix.cc:103
static Matrix3D sqrt(const Matrix3D &A)
Calculates the pointwise square root.
Definition: Matrix.cc:310
Matrix3D()
default constructor
Definition: Matrix.cc:34
Data type for small dense matrix.
Definition: SmallMatrix.h:68