SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
mth::Matrix3x3< T > Class Template Reference

convenience wrapper over Matrix<T,3,3> More...

Inheritance diagram for mth::Matrix3x3< T >:
mth::Matrix< T, 3, 3 > can::Array< Vector< T, N >, M >

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
 
- Public Member Functions inherited from mth::Matrix< T, 3, 3 >
 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
 
- Public Member Functions inherited from can::Array< Vector< T, N >, M >
 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
 

Detailed Description

template<class T>
class mth::Matrix3x3< T >

convenience wrapper over Matrix<T,3,3>

like Vector3, this provides component-wise inititialization

Definition at line 194 of file mthMatrix.h.


The documentation for this class was generated from the following file: