Open Qmin
0.8.0
GPU-accelerated Q-tensor-based liquid crystal simulations
|
#include <matrix.h>
Public Member Functions | |
HOSTDEVICE | Matrix3x3 () |
Default constructor is the identity matrix. More... | |
HOSTDEVICE | Matrix3x3 (scalar y11, scalar y12, scalar y13, scalar y21, scalar y22, scalar y23, scalar y31, scalar y32, scalar y33) |
Generic constructor is whatever you wnat it to be. More... | |
HOSTDEVICE void | set (scalar y11, scalar y12, scalar y13, scalar y21, scalar y22, scalar y23, scalar y31, scalar y32, scalar y33) |
Set the values to some desired set. More... | |
HOSTDEVICE void | transpose () |
Transpose. More... | |
HOSTDEVICE void | operator= (const Matrix3x3 &m2) |
assignment operator More... | |
HOSTDEVICE void | operator *= (const Matrix3x3 &m2) |
matrix multiplication operator More... | |
HOSTDEVICE void | operator *= (scalar a) |
scalar multiplication operator More... | |
HOSTDEVICE void | operator+= (const Matrix3x3 &m2) |
Matrix addition operator. More... | |
HOSTDEVICE void | operator-= (const Matrix3x3 &m2) |
Matrix subtraction operator. More... | |
Public Attributes | |
scalar | x11 |
The entries of the matrix. More... | |
scalar | x12 |
scalar | x13 |
scalar | x21 |
scalar | x22 |
scalar | x23 |
scalar | x31 |
scalar | x32 |
scalar | x33 |
Friends | |
HOSTDEVICE friend Matrix3x3 | operator * (const Matrix3x3 &m1, const Matrix3x3 &m2) |
matrix multiplication operator More... | |
HOSTDEVICE friend Matrix3x3 | operator * (const Matrix3x3 &m, const scalar a) |
scalar right multiplication operator More... | |
HOSTDEVICE friend Matrix3x3 | operator * (const scalar a, const Matrix3x3 &m) |
scalar left multiplication operator More... | |
HOSTDEVICE friend Matrix3x3 | operator+ (const Matrix3x3 &m1, const Matrix3x3 &m2) |
Matrix addition operator. More... | |
HOSTDEVICE friend Matrix3x3 | operator- (const Matrix3x3 &m1, const Matrix3x3 &m2) |
matrix subtraction operator More... | |
HOSTDEVICE friend scalar3 | operator * (const scalar3 &v, const Matrix3x3 &m) |
matrix-vector multiplication operator More... | |
HOSTDEVICE friend scalar3 | operator * (const Matrix3x3 &m, const scalar3 &v) |
matrix-vector multiplication operator More... | |
Matrix3x3 provides a simple interface for operations using 3x3 matrices.
|
inline |
Default constructor is the identity matrix.
|
inline |
Generic constructor is whatever you wnat it to be.
|
inline |
Set the values to some desired set.
References x11, x12, x13, x21, x22, x23, x31, x32, and x33.
Referenced by landauDeGennesLC::computeStressTensors(), operator *=(), operator+=(), operator-=(), and operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
matrix multiplication operator
|
friend |
scalar right multiplication operator
|
friend |
scalar left multiplication operator
|
friend |
Matrix addition operator.
|
friend |
matrix subtraction operator
|
friend |
matrix-vector multiplication operator
|
friend |
matrix-vector multiplication operator
scalar Matrix3x3::x11 |
The entries of the matrix.
Referenced by landauDeGennesLC::computeStressTensors(), operator *=(), operator+=(), operator-=(), operator=(), and set().
scalar Matrix3x3::x12 |
Referenced by operator *=(), operator+=(), operator-=(), operator=(), set(), and transpose().
scalar Matrix3x3::x13 |
Referenced by operator *=(), operator+=(), operator-=(), operator=(), set(), and transpose().
scalar Matrix3x3::x21 |
Referenced by operator *=(), operator+=(), operator-=(), operator=(), set(), and transpose().
scalar Matrix3x3::x22 |
Referenced by landauDeGennesLC::computeStressTensors(), operator *=(), operator+=(), operator-=(), operator=(), and set().
scalar Matrix3x3::x23 |
Referenced by operator *=(), operator+=(), operator-=(), operator=(), set(), and transpose().
scalar Matrix3x3::x31 |
Referenced by operator *=(), operator+=(), operator-=(), operator=(), set(), and transpose().
scalar Matrix3x3::x32 |
Referenced by operator *=(), operator+=(), operator-=(), operator=(), set(), and transpose().
scalar Matrix3x3::x33 |
Referenced by landauDeGennesLC::computeStressTensors(), operator *=(), operator+=(), operator-=(), operator=(), and set().