Open Qmin
0.8.0
GPU-accelerated Q-tensor-based liquid crystal simulations
|
#include <matrix.h>
Public Member Functions | |
HOSTDEVICE | MatrixDxD (bool makeIdentity=true) |
Default constructor is the identity matrix. More... | |
HOSTDEVICE | MatrixDxD (vector< dVec > &_mat) |
Generic constructor is whatever you want it to be. More... | |
HOSTDEVICE void | set (const vector< dVec > &_mat) |
Set the values to some desired set. More... | |
HOSTDEVICE void | operator= (const MatrixDxD &m2) |
Transpose. More... | |
HOSTDEVICE void | operator *= (const MatrixDxD &m2) |
matrix multiplication operator More... | |
HOSTDEVICE void | operator *= (scalar a) |
scalar multiplication operator More... | |
HOSTDEVICE void | operator+= (const MatrixDxD &m2) |
Matrix addition operator. More... | |
HOSTDEVICE void | operator-= (const MatrixDxD &m2) |
Matrix subtraction operator. More... | |
Public Attributes | |
vector< dVec > | mat |
The entries of the matrix. More... | |
Friends | |
HOSTDEVICE friend MatrixDxD | operator * (const MatrixDxD &m1, const MatrixDxD &m2) |
matrix multiplication operator More... | |
HOSTDEVICE friend MatrixDxD | operator * (const MatrixDxD &m, const scalar a) |
scalar right multiplication operator More... | |
HOSTDEVICE friend MatrixDxD | operator * (const scalar a, const MatrixDxD &m) |
scalar left multiplication operator More... | |
HOSTDEVICE friend MatrixDxD | operator+ (const MatrixDxD &m1, const MatrixDxD &m2) |
Matrix addition operator. More... | |
HOSTDEVICE friend MatrixDxD | operator- (const MatrixDxD &m1, const MatrixDxD &m2) |
matrix subtraction operator More... | |
HOSTDEVICE friend dVec | operator * (const MatrixDxD &m, const dVec &v) |
matrix-vector multiplication operator More... | |
MatrixDxD provides a simple interface for operations using DxD matrices. In particular, it implement matrix-maxtrix multiplication, and has specialized matrix-vector and vector-matrix multiplication in which dVecs variables take the place of vectors. A dyadic product is implemented which takes two dVecs and returns a MatrixDxD
|
inline |
Default constructor is the identity matrix.
References make_dVec(), and mat.
|
inline |
Generic constructor is whatever you want it to be.
References mat.
|
inline |
|
inline |
|
inline |
|
inline |
scalar multiplication operator
References mat.
|
inline |
Matrix addition operator.
References mat.
|
inline |
Matrix subtraction operator.
References mat.
|
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
vector<dVec> MatrixDxD::mat |
The entries of the matrix.
Referenced by Simulation::computePressureTensor(), dyad(), MatrixDxD(), operator *=(), operator+=(), operator-=(), operator=(), set(), and trace().