29 virtual int Rows()
const;
31 virtual int Cols()
const;
34 virtual const TVar &
GetVal(
const int row,
const int col )
const;
39 const TVar alpha=1.,
const TVar beta = 0.,
const int opt = 0)
const;
46 const TVar overrelax, TVar &
tol,
47 const int FromCurrent = 0,
const int direction = 1 );
50 void SetStencil(
int stencilnumber,
int inc,
int *IA, TVar *A );
void IncreaseStencilPointers(int stencilnumber)
Implements a sparse matrix defined by a stencil. Matrix.
MPStencil(int inc, int *IA, TVar *A)
MatrixOutputFormat
Defines output format.
void SolveSOR(int &numiterations, const TPZFMatrix< TVar > &rhs, TPZFMatrix< TVar > &x, TPZFMatrix< TVar > *residual, TPZFMatrix< TVar > &scratch, const TVar overrelax, TVar &tol, const int FromCurrent=0, const int direction=1)
virtual int Rows() const
Returns the rows of this.
virtual int Cols() const
Returns the columns of this.
struct TPZStencilMatrix::MPStencil ** fMystencils
Contains TPZMatrixclass which implements full matrix (using column major representation).
TPZStencilMatrix(int rows, int cols)
sets up the StencilMatrix based on the stencil
virtual const TVar & GetVal(const int row, const int col) const
Get the matrix entry at (row,col) without bound checking.
virtual void MultAdd(const TPZFMatrix< TVar > &x, const TPZFMatrix< TVar > &y, TPZFMatrix< TVar > &z, const TVar alpha=1., const TVar beta=0., const int opt=0) const
computes
Full matrix class. Matrix.
void SetStencil(int stencilnumber, int inc, int *IA, TVar *A)
initiates Stencil number "stencilnumber" with the data
Contains TPZMatrix<TVar>class, root matrix class.
void SetNodeStencils(int *stencilnumber)
associates the given stencil number with each row
virtual void Print(const char *title, std::ostream &out=std::cout, const MatrixOutputFormat form=EFormatted) const
Print the matrix along with a identification title.
virtual ~TPZStencilMatrix()
int fNumberOfStencilPointers
Root matrix class (abstract). Matrix.