ParMooN
 All Classes Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
TSquareMatrixNSE2D Class Reference
Inheritance diagram for TSquareMatrixNSE2D:
Inheritance graph
[legend]
Collaboration diagram for TSquareMatrixNSE2D:
Collaboration graph
[legend]

Public Member Functions

 TSquareMatrixNSE2D (TSquareStructure2D *squarestructure)
 
 ~TSquareMatrixNSE2D ()
 
int * GetBeginJb ()
 
int * GetJb ()
 
int GetN_DOFperJoint ()
 
double * GetAlpha ()
 
int * GetBeginC ()
 
void SetBeginC (int *beginc)
 
double * GetC ()
 
void SetC (double *c)
 
int * GetBeginP ()
 
void SetBeginP (int *beginp)
 
double * GetP ()
 
void SetP (double *p)
 
- Public Member Functions inherited from TSquareMatrix2D
 TSquareMatrix2D (TSquareStructure2D *squarestructure)
 
void SetStructure (TSquareStructure2D *squarestructure)
 
 ~TSquareMatrix2D ()
 
TFESpace2DGetFESpace () const
 
TSquareStructure2DGetMatrixStructure () const
 
TSquareStructure2DGetStructure () const
 
TSquareMatrix2Doperator*= (double alpha)
 scale matrix by scalar (only active entries)
 
TSquareMatrix2Doperator+= (TSquareMatrix2D &rhsMat)
 add another matrix to this one (only active entries)
 
TSquareMatrix2Doperator+= (TSquareMatrix2D *rhsMat)
 add another matrix to this one (only active entries)
 
TSquareMatrix2Doperator= (const TSquareMatrix2D &rhs)
 copy matrix 'rhs' to this
 
- Public Member Functions inherited from TSquareMatrix
 TSquareMatrix (TSquareStructure *structure)
 
 ~TSquareMatrix ()
 
void ResetActive ()
 
void resetNonActive ()
 set zeros in nonactive rows. More...
 
void ReNumbering (int *&Numbers) const
 
int GetActiveBound () const
 
int GetColOrder () const
 
void SetStructure (TSquareStructure *structure)
 
TSquareStructureGetStructure () const
 
int Write (const char *filename)
 
void Print ()
 
- Public Member Functions inherited from TMatrix
 TMatrix (TStructure *structure)
 
 TMatrix (TStructure *structure, double *Entries)
 
void SetStructure (TStructure *structure)
 reset the structure, this may mean that the entries need to be reallocated
 
 TMatrix (int nRows, int nCols)
 
 ~TMatrix ()
 
void Reset ()
 
int GetN_Rows () const
 
int GetN_Columns () const
 
int GetN_Entries () const
 
int GetHangingN_Entries () const
 
int * GetKCol () const
 
int * GetHangingKCol () const
 
int * GetHangingRowPtr () const
 
int * GetRowPtr () const
 
TStructureGetStructure () const
 
double * GetEntries () const
 
double GetNorm (int p=-1) const
 
int Write (const char *filename) const
 
void Print (const char *name="a") const
 Print matrix into the shell.
 
void PrintFull (std::string name="", int fieldWidth=4) const
 print the full matrix, including all zeros More...
 
void add (int i, int j, double val)
 
void add (int i, std::map< int, double > vals, double factor=1.0)
 
void add (std::map< int, std::map< int, double > > vals, double factor=1.0)
 
void set (int i, int j, double val)
 
const double & get (int i, int j) const
 
double & get (int i, int j)
 
void setEntries (double *entries)
 
TMatrixGetTransposed () const
 return a new TMatrix which is the transposed of this matrix More...
 
void changeRows (std::map< int, std::map< int, double > > entries, bool deleteOldArrays=false)
 replace several rows in the matrix with new entries. More...
 
virtual TMatrixoperator+= (const TMatrix *A)
 add another matrix to this one More...
 
virtual TMatrixoperator-= (const TMatrix *A)
 substract another matrix to this one More...
 
virtual TMatrixoperator+= (const TMatrix &A)
 add another matrix to this one More...
 
TMatrixoperator= (const TMatrix &A)
 copy entries from A to this More...
 
void multiply (const double *const x, double *y, double a=1.0) const
 compute y += a * A*x More...
 
TMatrixmultiply (const TMatrix *const B, double a=1.0) const
 compute matrix-matrix product C = a*A*B, More...
 
void scale (const double *const factor, bool from_left=true)
 scale a matrix using a vector More...
 
void remove_zeros (double tol=0.0)
 remove all entries from sparsity structure where a zero is stored More...
 
double & operator() (const int i, const int j)
 get/set a specific matrix entry More...
 
const double & operator() (const int i, const int j) const
 get a specific matrix entry More...
 

Protected Attributes

int * BeginJb
 
int * jb
 
int N_DOFperJoint
 
double * Alpha
 
int * BeginC
 
double * C
 
int * BeginP
 
double * P
 
- Protected Attributes inherited from TSquareMatrix2D
TSquareStructure2Dstructure
 
- Protected Attributes inherited from TSquareMatrix
TSquareStructurestructure
 
int HangingBound
 
int ColOrder
 
- Protected Attributes inherited from TMatrix
TStructurestructure
 
double * Entries
 

Constructor & Destructor Documentation

TSquareMatrixNSE2D::TSquareMatrixNSE2D ( TSquareStructure2D squarestructure)

generate the matrix

TSquareMatrixNSE2D::~TSquareMatrixNSE2D ( )

destructor: free Entries array

Member Data Documentation

double* TSquareMatrixNSE2D::Alpha
protected

coefficient array due to special edge dof

int* TSquareMatrixNSE2D::BeginC
protected

begin array for bubble correction

int* TSquareMatrixNSE2D::BeginJb
protected

begin array for jb array

int* TSquareMatrixNSE2D::BeginP
protected

begin array for nonconstant pressure

double* TSquareMatrixNSE2D::C
protected

bubble correction coefficients

int* TSquareMatrixNSE2D::jb
protected

local number of special edge dof

int TSquareMatrixNSE2D::N_DOFperJoint
protected

number of dof on each joint

double* TSquareMatrixNSE2D::P
protected

nonconstant pressure parts


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