![]() |
SCOREC core
Parallel unstructured mesh tools
|
convenience wrapper over Matrix<T,3,3> More...
Public Member Functions | |
Matrix3x3 () | |
default constructor | |
Matrix3x3 (T const &a11, T const &a12, T const &a13, T const &a21, T const &a22, T const &a23, T const &a31, T const &a32, T const &a33) | |
component-wise constructor | |
Matrix3x3 (Matrix< T, 3, 3 > const &other) | |
copy constructor | |
void | toArray (T(*array)[3]) const |
write matrix to an array | |
![]() | |
Matrix () | |
default constructor | |
Matrix (unsigned m, unsigned n) | |
construct with m by n elements More... | |
unsigned | rows () const |
get the number of rows | |
unsigned | cols () const |
get the number of columns | |
T & | operator() (unsigned i, unsigned j) |
mutable index operator More... | |
T const & | operator() (unsigned i, unsigned j) const |
immutable index operator More... | |
Matrix< T, M, N > | operator+ (Matrix< T, M, N > const &b) const |
add two matrices | |
Matrix< T, M, N > | operator- (Matrix< T, M, N > const &b) const |
subtract two matrices | |
Matrix< T, M, N > | operator* (T const &s) const |
multiply by a scalar | |
Vector< T, M > | operator* (Vector< T, N > const &b) const |
multiply a matrix by a vector | |
Matrix< T, M, O > | operator* (Matrix< T, N, O > const &b) const |
multiply two matrices More... | |
Matrix< T, M, N > | operator/ (T const &s) const |
divide by a scalar | |
void | zero () |
zero a matrix | |
![]() | |
Array () | |
default constructor - necessary | |
Array (Array< Vector< T, N >, N > const &other) | |
copy constructor | |
~Array () | |
elems is destroyed automatically | |
Array< Vector< T, N >, N > & | operator= (Array< Vector< T, N >, N > const &other) |
assignment operator | |
Vector< T, N > & | operator[] (unsigned i) |
mutable index operator | |
Vector< T, N >const & | operator[] (unsigned i) const |
immutable index operator | |
unsigned | size () const |
get the size of this array | |
convenience wrapper over Matrix<T,3,3>
like Vector3, this provides component-wise inititialization
Definition at line 194 of file mthMatrix.h.