HG-MD  1
Classes | Functions
Matrix.h File Reference
#include <cmath>
#include <sstream>
#include "Vector.h"
Include dependency graph for Matrix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MatrixSymmetric3D
 Implementation of a 3D symmetric matrix. More...
class  Matrix3D
 Implementation of a 3D matrix. More...

Functions

MatrixSymmetric3D SymmetrizedDyadic (Vec3D A, Vec3D B)
 Implementation of a 3D matrix.
Matrix3D Dyadic (Vec3D A, Vec3D B)
 calculates the dyadic product ( $ A \otimes B $)

Function Documentation

Matrix3D Dyadic ( Vec3D  A,
Vec3D  B 
)

calculates the dyadic product ( $ A \otimes B $)

References Vec3D::X, Vec3D::Y, and Vec3D::Z.

Referenced by StatisticsVector< T >::gather_statistics_collision().

                                  {
        return Matrix3D(A.X*B.X, A.X*B.Y, A.X*B.Z, 
                                        A.Y*B.X, A.Y*B.Y, A.Y*B.Z, 
                                        A.Z*B.X, A.Z*B.Y, A.Z*B.Z);
}

Implementation of a 3D matrix.

calculates the symmetrized dyadic product ( $ (A \otimes B + B \otimes A)/2 $)

References Vec3D::X, Vec3D::Y, and Vec3D::Z.

Referenced by StatisticsVector< T >::evaluate_particle_statistics().

                                                      {
        return MatrixSymmetric3D(A.X*B.X, 0.5*(A.X*B.Y+B.X*A.Y), 0.5*(A.X*B.Z+B.X*A.Z), A.Y*B.Y, 0.5*(A.Y*B.Z+B.Y*A.Z), A.Z*B.Z);
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines