Finite Element Domain Decomposition Library
FEDDLib
|
This class represents a templated small Matrix of type T. Primarily created for 2x2 and 3x3 matrices. Consequently, most features are limited to a certain matrix size. More...
#include <SmallMatrix.hpp>
Public Types | |
typedef unsigned | UN |
typedef std::vector< T > | Vec_T_Type |
typedef const std::vector< T > | Vec_T_Const_Type |
typedef std::vector< Vec_T_Type > | Vec2D_T_Type |
Public Member Functions | |
SmallMatrix (int size) | |
SmallMatrix (int size, T v) | |
Vec_T_Type & | operator[] (int i) |
Vec_T_Const_Type & | operator[] (int i) const |
SmallMatrix< T > & | operator= (SmallMatrix< T > &sm) |
SmallMatrix< T > | operator* (SmallMatrix< T > &other) |
SmallMatrix< T > | operator+ (SmallMatrix< T > &other) |
SmallMatrix< T > & | operator*= (SmallMatrix< T > &other) |
SmallMatrix< T > & | operator+= (SmallMatrix< T > &other) |
int | multiply (SmallMatrix< T > &bMat, SmallMatrix< T > &cMat) |
int | add (SmallMatrix< T > &bMat, SmallMatrix< T > &cMat) |
int | innerProduct (SmallMatrix< T > &bMat, T &res) |
double | innerProduct (SmallMatrix< T > &bMat) |
void | trace (T &res) |
void | scale (T scalar) |
int | size () const |
void | resize (UN size) |
void | print () |
double | computeInverse (SmallMatrix< T > &inverse) |
double | computeDet () |
double | computeScaling () |
This class represents a templated small Matrix of type T. Primarily created for 2x2 and 3x3 matrices. Consequently, most features are limited to a certain matrix size.