Finite Element Domain Decomposition Library
FEDDLib
Loading...
Searching...
No Matches
FEDD::SmallMatrix< T > Class Template Reference

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 ()
 

Detailed Description

template<class T>
class FEDD::SmallMatrix< T >

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.


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