Open Qmin  0.8.0
GPU-accelerated Q-tensor-based liquid crystal simulations
Classes | Macros | Functions
matrix.h File Reference
#include "std_include.h"
Include dependency graph for matrix.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  Matrix2x2
 contains a {{x11,x12},{x21,x22}} set, a (3x3) structure, and a (d x d) structure (and matrix manipulations) More...
 
struct  Matrix3x3
 
struct  MatrixDxD
 

Macros

#define HOSTDEVICE   inline __attribute__((always_inline))
 

Functions

HOSTDEVICE Matrix2x2 dyad (const scalar2 &v1, const scalar2 &v2)
 Form a matrix by the dyadic product of two vectors. More...
 
void printMatrix (Matrix2x2 &m)
 
HOSTDEVICE MatrixDxD dyad (const dVec &v1, const dVec &v2)
 Form a matrix by the dyadic product of two vectors. More...
 
HOSTDEVICE scalar trace (const MatrixDxD &m)
 Form a matrix by the dyadic product of two vectors. More...
 

Macro Definition Documentation

◆ HOSTDEVICE

#define HOSTDEVICE   inline __attribute__((always_inline))

Function Documentation

◆ dyad() [1/2]

HOSTDEVICE Matrix2x2 dyad ( const scalar2 v1,
const scalar2 v2 
)

Form a matrix by the dyadic product of two vectors.

◆ printMatrix()

void printMatrix ( Matrix2x2 m)
inline

◆ dyad() [2/2]

HOSTDEVICE MatrixDxD dyad ( const dVec &  v1,
const dVec &  v2 
)

Form a matrix by the dyadic product of two vectors.

References MatrixDxD::mat.

◆ trace()

HOSTDEVICE scalar trace ( const MatrixDxD m)

Form a matrix by the dyadic product of two vectors.

References MatrixDxD::mat, and scalar.