Matrix3D operator-(const Matrix3D &A) const
Matrix subtraction.
double trace() const
Mean of the diagonal elements.
Matrix3D & operator+=(const Matrix3D &A)
Matrix addition.
Matrix3D & operator/=(const Mdouble a)
Scalar division.
Matrix3D operator/(const Mdouble a) const
Scalar division.
static Matrix3D dyadic(const Vec3D &a, const Vec3D &b)
Calculates the dyadic product of a two Vec3D: .
Matrix3D operator*(const Mdouble a) const
Scalar multiplication.
static Matrix3D cross(const Vec3D &a, const Matrix3D &b)
'Special' cross product; CP of vector with each column of a matrix
Matrix3D operator+(const Matrix3D &A) const
Matrix addition.
friend std::ostream & operator<<(std::ostream &os, const Matrix3D &A)
Add elements to ostream.
Matrix3D & operator-=(const Matrix3D &A)
Matrix substraction.
static Matrix3D sqrt(const Matrix3D &A)
Calculates the pointwise square root.
Mdouble XX
all nine matrix elements
void setZero()
Sets all elements to zero.
Implementation of a 3D matrix.
Implementation of a 3D vector (by Vitaliy).
Matrix3D()
default constructor
static Matrix3D square(const Matrix3D &A)
Calculates the pointwise square.
friend std::istream & operator>>(std::istream &is, Matrix3D &A)
Add elements to istream.