Open Qmin
0.8.0
GPU-accelerated Q-tensor-based liquid crystal simulations
|
#include "std_include.h"
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... | |
#define HOSTDEVICE inline __attribute__((always_inline)) |
HOSTDEVICE Matrix2x2 dyad | ( | const scalar2 & | v1, |
const scalar2 & | v2 | ||
) |
Form a matrix by the dyadic product of two vectors.
|
inline |
References Matrix2x2::x11, Matrix2x2::x12, Matrix2x2::x21, and Matrix2x2::x22.
HOSTDEVICE MatrixDxD dyad | ( | const dVec & | v1, |
const dVec & | v2 | ||
) |
Form a matrix by the dyadic product of two vectors.
References MatrixDxD::mat.
HOSTDEVICE scalar trace | ( | const MatrixDxD & | m | ) |
Form a matrix by the dyadic product of two vectors.
References MatrixDxD::mat, and scalar.