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= (const SmallMatrix< T > &sm)
SmallMatrix< T > operator* (const SmallMatrix< T > &other)
SmallMatrix< T > operator+ (const SmallMatrix< T > &other)
SmallMatrix< T > & operator*= (const SmallMatrix< T > &other)
SmallMatrix< T > & operator+= (const SmallMatrix< T > &other)
int multiply (const SmallMatrix< T > &bMat, SmallMatrix< T > &cMat) const
int add (const SmallMatrix< T > &bMat, SmallMatrix< T > &cMat) const
int innerProduct (const SmallMatrix< T > &bMat, T &res) const
double innerProduct (const SmallMatrix< T > &bMat) const
void trace (T &res) const
void scale (T scalar)
int size () const
void resize (UN size)
void print () const
double computeInverse (SmallMatrix< T > &inverse) const
double computeDet () const
double computeScaling () const

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: