NeoPZ
|
Implements a matrix divided into substructures. Matrix Sub structure. More...
#include <tpzdohrmatrix.h>
Public Types | |
typedef std::list< TPZAutoPointer< TSubStruct > > | SubsList |
The matrix class is a placeholder for a list of substructures. More... | |
Public Member Functions | |
TPZDohrMatrix (TPZAutoPointer< TPZDohrAssembly< TVar > > dohrassembly) | |
TPZDohrMatrix () | |
TPZDohrMatrix (const TPZDohrMatrix &cp) | |
virtual TPZMatrix< TVar > * | Clone () const override |
~TPZDohrMatrix () | |
const SubsList & | SubStructures () const |
int | NumCoarse () const |
int | NumThreads () const |
void | SetNumThreads (int numthreads) |
TPZAutoPointer< TSubStruct > | GetFirstSub () |
Just a method for tests. More... | |
void | Print (const char *name, std::ostream &out, const MatrixOutputFormat form=EFormatted) const override |
Just a method for tests. More... | |
void | SetNumCornerEqs (int nc) |
void | Initialize () |
Initialize the necessary datastructures. More... | |
void | AddSubstruct (TPZAutoPointer< TSubStruct > substruct) |
It adds a substruct. More... | |
virtual void | MultAddTBB (const TPZFMatrix< TVar > &x, const TPZFMatrix< TVar > &y, TPZFMatrix< TVar > &z, const TVar alpha, const TVar beta, const int opt) const |
It computes z = beta * y + alpha * opt(this)*x but z and x can not overlap in memory. More... | |
virtual void | MultAdd (const TPZFMatrix< TVar > &x, const TPZFMatrix< TVar > &y, TPZFMatrix< TVar > &z, const TVar alpha, const TVar beta, const int opt) const override |
void | AdjustResidual (TPZFMatrix< TVar > &res) |
Adjust the residual to zero the residual of the internal connects. More... | |
void | AddInternalSolution (TPZFMatrix< TVar > &solution) |
Add the solution corresponding to the internal residual. More... | |
template<> | |
void | Read (TPZStream &buf, void *context) |
Unpacks the object structure from a stream of bytes. More... | |
template<> | |
void | Read (TPZStream &buf, void *context) |
Unpacks the object structure from a stream of bytes. More... | |
template<> | |
void | Read (TPZStream &buf, void *context) |
Unpacks the object structure from a stream of bytes. More... | |
template<> | |
void | Read (TPZStream &buf, void *context) |
Unpacks the object structure from a stream of bytes. More... | |
template<> | |
void | Write (TPZStream &buf, int withclassid) const |
Packs the object structure in a stream of bytes. More... | |
template<> | |
void | Write (TPZStream &buf, int withclassid) const |
Packs the object structure in a stream of bytes. More... | |
template<> | |
void | Write (TPZStream &buf, int withclassid) const |
Packs the object structure in a stream of bytes. More... | |
template<> | |
void | Write (TPZStream &buf, int withclassid) const |
Packs the object structure in a stream of bytes. More... | |
TPZSavable | |
Methods which would make TPZMatrix<TVar>compliant with TPZSavable | |
void | Read (TPZStream &buf, void *context) override |
Unpacks the object structure from a stream of bytes. More... | |
void | Write (TPZStream &buf, int withclassid) const override |
Packs the object structure in a stream of bytes. More... | |
int | ClassId () const override |
Routines to send and receive messages. More... | |
Public Member Functions inherited from TPZMatrix< TVar > | |
TPZMatrix () | |
Simple constructor. More... | |
TPZMatrix (const TPZMatrix< TVar > &cp) | |
virtual | ~TPZMatrix () |
Simple destructor. More... | |
virtual int64_t | MemoryFootprint () const |
Returns the approximate size of the memory footprint (amount of memory required to store this object). More... | |
template<class TVar2 > | |
void | CopyFrom (TPZMatrix< TVar2 > ©) |
void | AutoFill (int64_t nrow, int64_t ncol, int symmetric) |
Fill matrix storage with randomic values. More... | |
virtual int | VerifySymmetry (REAL tol=1.e-13) const |
Checks if current matrix value is symmetric. More... | |
virtual int | Put (const int64_t row, const int64_t col, const TVar &value) |
Put values with bounds checking if DEBUG variable is defined. More... | |
virtual const TVar & | Get (const int64_t row, const int64_t col) const |
Get value with bound checking. More... | |
const TVar & | g (const int64_t row, const int64_t col) const |
Substitution for the () operator when const arguments are needed. More... | |
TVar & | operator() (const int64_t row, const int64_t col) |
The operators check on the bounds if the DEBUG variable is defined. More... | |
virtual TVar & | s (const int64_t row, const int64_t col) |
The operators check on the bounds if the DEBUG variable is defined. More... | |
TVar & | operator() (const int64_t row) |
The operators check on the bounds if the DEBUG variable is defined. More... | |
virtual int | PutVal (const int64_t, const int64_t, const TVar &val) |
Put values without bounds checking This method is faster than "Put" if DEBUG is defined. More... | |
virtual const TVar & | GetVal (const int64_t, const int64_t) const |
Get values without bounds checking This method is faster than "Get" if DEBUG is defined. More... | |
virtual void | AddKel (TPZFMatrix< TVar > &elmat, TPZVec< int64_t > &destinationindex) |
Add a contribution of a stiffness matrix. More... | |
virtual void | AddKel (TPZFMatrix< TVar > &elmat, TPZVec< int64_t > &sourceindex, TPZVec< int64_t > &destinationindex) |
Add a contribution of a stiffness matrix. More... | |
void | SetIsDecomposed (int val) |
Sets current matrix to decomposed state. More... | |
virtual bool | Compare (TPZSavable *copy, bool override=false) override |
Compare the object for identity with the object pointed to, eventually copy the object. More... | |
virtual bool | Compare (TPZSavable *copy, bool override=false) const override |
Compare the object for identity with the object pointed to, eventually copy the object. More... | |
virtual void | GetSub (const TPZVec< int64_t > &indices, TPZFMatrix< TVar > &block) const |
Extract the block indicated by the indices from the matrix. More... | |
bool | CompareValues (TPZMatrix< TVar > &M, TVar tol) |
Compare values of this to B, with a precision tolerance tol. More... | |
template<> | |
void | Print (const char *name, std::ostream &out, const MatrixOutputFormat form) const |
template<> | |
void | Print (const char *name, std::ostream &out, const MatrixOutputFormat form) const |
template<> | |
void | Print (const char *name, std::ostream &out, const MatrixOutputFormat form) const |
template<> | |
void | SolveCG (int64_t &numiterations, TPZSolver< std::complex< float > > &preconditioner, const TPZFMatrix< std::complex< float > > &F, TPZFMatrix< std::complex< float > > &result, TPZFMatrix< std::complex< float > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveCG (int64_t &numiterations, TPZSolver< std::complex< double > > &preconditioner, const TPZFMatrix< std::complex< double > > &F, TPZFMatrix< std::complex< double > > &result, TPZFMatrix< std::complex< double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveCG (int64_t &numiterations, TPZSolver< std::complex< long double > > &preconditioner, const TPZFMatrix< std::complex< long double > > &F, TPZFMatrix< std::complex< long double > > &result, TPZFMatrix< std::complex< long double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveGMRES (int64_t &numiterations, TPZSolver< std::complex< float > > &preconditioner, TPZFMatrix< std::complex< float > > &H, int &numvectors, const TPZFMatrix< std::complex< float > > &F, TPZFMatrix< std::complex< float > > &result, TPZFMatrix< std::complex< float > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveGMRES (int64_t &numiterations, TPZSolver< std::complex< double > > &preconditioner, TPZFMatrix< std::complex< double > > &H, int &numvectors, const TPZFMatrix< std::complex< double > > &F, TPZFMatrix< std::complex< double > > &result, TPZFMatrix< std::complex< double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveGMRES (int64_t &numiterations, TPZSolver< std::complex< long double > > &preconditioner, TPZFMatrix< std::complex< long double > > &H, int &numvectors, const TPZFMatrix< std::complex< long double > > &F, TPZFMatrix< std::complex< long double > > &result, TPZFMatrix< std::complex< long double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveBICG (int64_t &numiterations, TPZSolver< std::complex< float > > &preconditioner, const TPZFMatrix< std::complex< float > > &F, TPZFMatrix< std::complex< float > > &result, REAL &tol) |
template<> | |
void | SolveBICG (int64_t &numiterations, TPZSolver< std::complex< double > > &preconditioner, const TPZFMatrix< std::complex< double > > &F, TPZFMatrix< std::complex< double > > &result, REAL &tol) |
template<> | |
void | SolveBICG (int64_t &numiterations, TPZSolver< std::complex< long double > > &preconditioner, const TPZFMatrix< std::complex< long double > > &F, TPZFMatrix< std::complex< long double > > &result, REAL &tol) |
template<> | |
void | SolveBICGStab (int64_t &numiterations, TPZSolver< std::complex< float > > &preconditioner, const TPZFMatrix< std::complex< float > > &F, TPZFMatrix< std::complex< float > > &result, TPZFMatrix< std::complex< float > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveBICGStab (int64_t &numiterations, TPZSolver< std::complex< double > > &preconditioner, const TPZFMatrix< std::complex< double > > &F, TPZFMatrix< std::complex< double > > &result, TPZFMatrix< std::complex< double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveBICGStab (int64_t &numiterations, TPZSolver< std::complex< long double > > &preconditioner, const TPZFMatrix< std::complex< long double > > &F, TPZFMatrix< std::complex< long double > > &result, TPZFMatrix< std::complex< long double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveIR (int64_t &numiterations, TPZSolver< std::complex< float > > &preconditioner, const TPZFMatrix< std::complex< float > > &F, TPZFMatrix< std::complex< float > > &result, TPZFMatrix< std::complex< float > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveIR (int64_t &numiterations, TPZSolver< std::complex< double > > &preconditioner, const TPZFMatrix< std::complex< double > > &F, TPZFMatrix< std::complex< double > > &result, TPZFMatrix< std::complex< double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
void | SolveIR (int64_t &numiterations, TPZSolver< std::complex< long double > > &preconditioner, const TPZFMatrix< std::complex< long double > > &F, TPZFMatrix< std::complex< long double > > &result, TPZFMatrix< std::complex< long double > > *residual, REAL &tol, const int FromCurrent) |
template<> | |
bool | SolveEigenvaluesJacobi (int64_t &numiterations, REAL &tol, TPZVec< std::complex< float > > *Sort) |
template<> | |
bool | SolveEigenvaluesJacobi (int64_t &numiterations, REAL &tol, TPZVec< std::complex< double > > *Sort) |
template<> | |
bool | SolveEigenvaluesJacobi (int64_t &numiterations, REAL &tol, TPZVec< std::complex< long double > > *Sort) |
virtual void | Multiply (const TPZFMatrix< TVar > &A, TPZFMatrix< TVar > &res, int opt=0) const |
It mutiplies itself by TPZMatrix<TVar>A putting the result in res. More... | |
virtual void | Add (const TPZMatrix< TVar > &A, TPZMatrix< TVar > &res) const |
It adds itself to TPZMatrix<TVar>A putting the result in res. More... | |
virtual void | Residual (const TPZFMatrix< TVar > &x, const TPZFMatrix< TVar > &rhs, TPZFMatrix< TVar > &res) |
Computes res = rhs - this * x. More... | |
virtual void | Substract (const TPZMatrix< TVar > &A, TPZMatrix< TVar > &result) const |
It substracts A from storing the result in result. More... | |
virtual void | Identity () |
Converts the matrix in an identity matrix. More... | |
virtual void | Transpose (TPZMatrix< TVar > *const T) const |
It makes *T the transpose of current matrix. More... | |
int | Inverse (TPZFMatrix< TVar > &Inv, DecomposeType dec) |
It makes Inv =[this]. IMPORTANT OBSERVATION –> The original matrix (calling object) no is more equal. It containts the some decomposition (LU or Cholesky or ...) More... | |
TVar | MatrixNorm (int p, int64_t numiter=2000000, REAL tol=1.e-10) const |
Computes the matrix norm of this. More... | |
TVar | ConditionNumber (int p, int64_t numiter=2000000, REAL tol=1.e-10) |
Computes the matrix condition number of this. More... | |
virtual int | PutSub (const int64_t sRow, const int64_t sCol, const TPZFMatrix< TVar > &Source) |
It puts submatrix Source on actual matrix structure. More... | |
virtual int | GetSub (const int64_t sRow, const int64_t sCol, const int64_t rowSize, const int64_t colSize, TPZFMatrix< TVar > &Target) const |
Gets submatrix storing it on Target. More... | |
virtual int | AddSub (const int64_t sRow, const int64_t sCol, const TPZFMatrix< TVar > &Source) |
It adds Source matrix on current matrix from position (sRow, sCol) More... | |
virtual int | InsertSub (const int64_t sRow, const int64_t sCol, const int64_t rowSize, const int64_t colSize, const int64_t pRow, const int64_t pCol, TPZMatrix< TVar > *Target) const |
Inserts a submatrix from current object on matrix *Target with no redimentioning. More... | |
virtual int | AddSub (const int64_t sRow, const int64_t sCol, const int64_t rowSize, const int64_t colSize, const int64_t pRow, const int64_t pCol, TPZMatrix< TVar > *pA) const |
Adds a submatrix from current object in *Target. More... | |
virtual void | UpdateFrom (TPZAutoPointer< TPZMatrix< TVar > >) |
Updates the values of the matrix based on the values of the matrix. More... | |
virtual int | IsSimetric () const |
Checks if the current matrix is symmetric. More... | |
int | IsSquare () const |
Checks if current matrix is square. More... | |
virtual void | Simetrize () |
Simetrizes copies upper plan to the lower plan, making its data simetric. More... | |
virtual int | IsDefPositive () const |
Checks if current matrix is definite positive. More... | |
int | IsDecomposed () const |
Checks if current matrix is already decomposed. More... | |
virtual int | Decompose_LU (std::list< int64_t > &singular) |
Decomposes the current matrix using LU decomposition. More... | |
virtual int | Decompose_LU () |
virtual int | Decompose_Cholesky () |
Decomposes the current matrix using Cholesky method. The current matrix has to be symmetric. More... | |
virtual int | Decompose_Cholesky (std::list< int64_t > &singular) |
Decomposes the current matrix using Cholesky method. More... | |
virtual int | Decompose_LDLt (std::list< int64_t > &singular) |
Decomposes the current matrix using LDLt. The current matrix has to be symmetric. "L" is lower triangular with 1.0 in its diagonal and "D" is a Diagonal matrix. More... | |
virtual int | Decompose_LDLt () |
Decomposes the current matrix using LDLt. More... | |
virtual int | Substitution (TPZFMatrix< TVar > *B) const |
Computes Forward and Backward substitution for a "LU" decomposed matrix. More... | |
virtual int | Subst_Forward (TPZFMatrix< TVar > *b) const |
Computes B = Y, where A*Y = B, A is lower triangular. More... | |
virtual int | Subst_Backward (TPZFMatrix< TVar > *b) const |
Computes B = Y, where A*Y = B, A is upper triangular. More... | |
virtual int | Subst_LForward (TPZFMatrix< TVar > *b) const |
Computes B = Y, where A*Y = B, A is lower triangular with A(i,i)=1. More... | |
virtual int | Subst_LBackward (TPZFMatrix< TVar > *b) const |
Computes B = Y, where A*Y = B, A is upper triangular with A(i,i)=1. More... | |
virtual int | Subst_Diag (TPZFMatrix< TVar > *b) const |
Computes B = Y, where A*Y = B, A is diagonal matrix. More... | |
virtual void | Input (std::istream &in=std::cin) |
Input operation. More... | |
virtual void | Print (std::ostream &out) const |
int64_t | Rows () const |
Returns number of rows. More... | |
int64_t | Cols () const |
Returns number of cols. More... | |
virtual int64_t | Dim () const |
Returns the dimension of the matrix if the matrix is square. More... | |
virtual int | Resize (const int64_t newRows, const int64_t newCols) |
Redimensions a matriz keeping the previous values. More... | |
virtual int | Redim (const int64_t newRows, const int64_t newCols) |
Redimensions the matrix reinitializing it with zero. More... | |
virtual int | Zero () |
Zeroes the matrix. More... | |
virtual void | SolveJacobi (int64_t &numiterations, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, TPZFMatrix< TVar > &scratch, REAL &tol, const int FromCurrent=0) |
Solves the linear system using Jacobi method. . More... | |
virtual void | SolveSOR (int64_t &numiterations, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, TPZFMatrix< TVar > &scratch, const REAL overrelax, REAL &tol, const int FromCurrent=0, const int direction=1) |
Solves the linear system using Successive Over Relaxation method (Gauss Seidel). . More... | |
virtual void | SolveSSOR (int64_t &numiterations, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, TPZFMatrix< TVar > &scratch, const REAL overrelax, REAL &tol, const int FromCurrent=0) |
Solves the linear system using Symmetric Successive Over Relaxation method (Gauss Seidel). . More... | |
virtual void | SolveCG (int64_t &numiterations, TPZSolver< TVar > &preconditioner, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, REAL &tol, const int FromCurrent=0) |
Solves the linear system using Conjugate Gradient method. . More... | |
virtual void | SolveBICG (int64_t &numiterations, TPZSolver< TVar > &preconditioner, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, REAL &tol) |
Solves the linear system using Bi-Conjugate Gradient method. . More... | |
virtual void | SolveBICGStab (int64_t &numiterations, TPZSolver< TVar > &preconditioner, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, REAL &tol, const int FromCurrent=0) |
Solves the linear system using Bi-Conjugate Gradient stabilized method. . More... | |
virtual void | SolveGMRES (int64_t &numiterations, TPZSolver< TVar > &preconditioner, TPZFMatrix< TVar > &H, int &numvectors, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, REAL &tol, const int FromCurrent) |
Solves the linear system using Generalized Minimal Residual (GMRES) method. . More... | |
virtual void | SolveIR (int64_t &numiterations, TPZSolver< TVar > &preconditioner, const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual, REAL &tol, const int FromCurrent=0) |
Solves the linear system using IR method. . More... | |
virtual bool | SolveEigenvaluesJacobi (int64_t &numiterations, REAL &tol, TPZVec< TVar > *Sort=0) |
Transforms this matrix in a diagonal matrix, where the diagonal values are its eigenvalues. This method is efficient only for small matrices. More... | |
virtual bool | SolveEigensystemJacobi (int64_t &numiterations, REAL &tol, TPZVec< TVar > &Eigenvalues, TPZFMatrix< TVar > &Eigenvectors) const |
Compute Eigenvalues and Eigenvectors of this matrix. This method is efficient only for small matrices. More... | |
virtual int | SolveDirect (TPZFMatrix< TVar > &F, const DecomposeType dt, std::list< int64_t > &singular) |
Solves the linear system using Direct methods. More... | |
virtual int | SolveDirect (TPZFMatrix< TVar > &F, const DecomposeType dt) |
Solves the linear system using Direct methods. More... | |
virtual int | Decompose (const DecomposeType dt, std::list< int64_t > &singular) |
decompose the system of equations acording to the decomposition scheme More... | |
int | Solve_LU (TPZFMatrix< TVar > *B, std::list< int64_t > &singular) |
Solves the linear system using LU method . More... | |
int | Solve_LU (TPZFMatrix< TVar > *B) |
Solves the linear system using LU method . More... | |
virtual int | Solve_Cholesky (TPZFMatrix< TVar > *B) |
Solves the linear system using Cholesky method . More... | |
int | Solve_Cholesky (TPZFMatrix< TVar > *B, std::list< int64_t > &singular) |
Solves the linear system using Cholesky method . More... | |
int | Solve_LDLt (TPZFMatrix< TVar > *B, std::list< int64_t > &singular) |
Solves the linear system using LDLt method . More... | |
int | Solve_LDLt (TPZFMatrix< TVar > *B) |
Solves the linear system using LDLt method . More... | |
Public Member Functions inherited from TPZSavable | |
TPZSavable () | |
virtual | ~TPZSavable () |
virtual std::list< std::map< std::string, uint64_t > > | VersionHistory () const |
virtual std::pair< std::string, uint64_t > | Version () const |
Public Member Functions inherited from TPZRegisterClassId | |
template<typename T > | |
TPZRegisterClassId (int(T::*)() const) | |
TPZRegisterClassId ()=default | |
Public Attributes | |
TPZAutoPointer< TPZDohrAssembly< TVar > > | fAssembly |
Private Attributes | |
SubsList | fGlobal |
int | fNumCoarse |
int | fNumThreads |
Number of threads that will be used during the matrix vector multiplication. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from TPZMatrix< TVar > | |
static int | Error (const char *msg, const char *msg2=0) |
Returns error messages. More... | |
static TVar | ReturnNearestValue (TVar val, TPZVec< TVar > &Vec, TVar tol) |
Retorna o valor mais proximo a "val" (exceto valores no intervalo -tol <= val <= +tol) contido no vetor Vec. More... | |
Static Public Member Functions inherited from TPZSavable | |
static std::set< TPZRestoreClassBase * > & | RestoreClassSet () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::map< int, TPZRestore_t > & | ClassIdMap () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::pair< std::string, uint64_t > | NeoPZVersion () |
static void | Register (TPZRestoreClassBase *restore) |
static void | RegisterClassId (int classid, TPZRestore_t fun) |
static TPZSavable * | CreateInstance (const int &classId) |
Protected Member Functions inherited from TPZMatrix< TVar > | |
void | PrepareZ (const TPZFMatrix< TVar > &y, TPZFMatrix< TVar > &z, const TVar beta, const int opt) const |
Is an auxiliar method used by MultiplyAdd. More... | |
TPZMatrix (const int64_t row, const int64_t col) | |
Constructor. More... | |
virtual int | Clear () |
It clears data structure. More... | |
Static Protected Member Functions inherited from TPZMatrix< TVar > | |
static void | Swap (int64_t *a, int64_t *b) |
Swaps contents of a in b and b in a. More... | |
Protected Attributes inherited from TPZMatrix< TVar > | |
int64_t | fRow |
Number of rows in matrix. More... | |
int64_t | fCol |
Number of cols in matrix. More... | |
char | fDecomposed |
Decomposition type used to decompose the current matrix. More... | |
char | fDefPositive |
Definite Posistiveness of current matrix. More... | |
Static Protected Attributes inherited from TPZMatrix< TVar > | |
static TVar | gZero |
Initializing value to static variable. More... | |
Implements a matrix divided into substructures. Matrix Sub structure.
Definition at line 30 of file tpzdohrmatrix.h.
typedef std::list<TPZAutoPointer<TSubStruct> > TPZDohrMatrix< TVar, TSubStruct >::SubsList |
The matrix class is a placeholder for a list of substructures.
Definition at line 34 of file tpzdohrmatrix.h.
TPZDohrMatrix< TVar, TSubStruct >::TPZDohrMatrix | ( | TPZAutoPointer< TPZDohrAssembly< TVar > > | dohrassembly | ) |
Definition at line 24 of file tpzdohrmatrix.cpp.
|
inline |
Definition at line 49 of file tpzdohrmatrix.h.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::Clone().
|
inline |
Definition at line 54 of file tpzdohrmatrix.h.
TPZDohrMatrix< TVar, TSubStruct >::~TPZDohrMatrix | ( | ) |
Definition at line 30 of file tpzdohrmatrix.cpp.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::Clone().
void TPZDohrMatrix< TVar, TSubStruct >::AddInternalSolution | ( | TPZFMatrix< TVar > & | solution | ) |
Add the solution corresponding to the internal residual.
Add the solution corresponding to the internal residual
Definition at line 276 of file tpzdohrmatrix.cpp.
References TPZDohrMatrix< TVar, TSubStruct >::fGlobal.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct(), and main().
|
inline |
It adds a substruct.
Definition at line 107 of file tpzdohrmatrix.h.
References TPZDohrMatrix< TVar, TSubStruct >::AddInternalSolution(), TPZDohrMatrix< TVar, TSubStruct >::AdjustResidual(), TPZDohrMatrix< TVar, TSubStruct >::ClassId(), TPZDohrMatrix< TVar, TSubStruct >::MultAdd(), TPZDohrMatrix< TVar, TSubStruct >::MultAddTBB(), TPZDohrMatrix< TVar, TSubStruct >::Read(), test::res, and TPZDohrMatrix< TVar, TSubStruct >::Write().
Referenced by TPZDohrStructMatrix::Create(), TPZGenSubStruct::InitializeDohr(), and TPZGenSubStruct::InitializeDohrCondense().
void TPZDohrMatrix< TVar, TSubStruct >::AdjustResidual | ( | TPZFMatrix< TVar > & | res | ) |
Adjust the residual to zero the residual of the internal connects.
Adjust the residual to zero the residual of the internal connects
Definition at line 264 of file tpzdohrmatrix.cpp.
References TPZDohrMatrix< TVar, TSubStruct >::fGlobal.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct().
|
overridevirtual |
Routines to send and receive messages.
Reimplemented from TPZMatrix< TVar >.
Definition at line 159 of file tpzdohrmatrix.h.
References TPZMatrix< TVar >::ClassId(), and Hash().
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct(), TPZDohrMatrix< TVar, TSubStruct >::Read(), and TPZDohrMatrix< TVar, TSubStruct >::Write().
|
inlineoverridevirtual |
Implements TPZMatrix< TVar >.
Definition at line 60 of file tpzdohrmatrix.h.
References TPZDohrMatrix< TVar, TSubStruct >::TPZDohrMatrix(), and TPZDohrMatrix< TVar, TSubStruct >::~TPZDohrMatrix().
|
inline |
Just a method for tests.
Definition at line 85 of file tpzdohrmatrix.h.
void TPZDohrMatrix< TVar, TSubStruct >::Initialize | ( | ) |
Initialize the necessary datastructures.
Definition at line 218 of file tpzdohrmatrix.cpp.
References TPZDohrMatrix< TVar, TSubStruct >::fAssembly, TPZDohrMatrix< TVar, TSubStruct >::fGlobal, TPZTimeTemp::fNumSub, LOGPZ_DEBUG, TPZMatrix< TVar >::Print(), TPZMatrix< TVar >::Rows(), and tempo.
Referenced by TPZDohrStructMatrix::Assemble(), TPZDohrStructMatrix::AssembleTBB(), and TPZDohrMatrix< TVar, TSubStruct >::SetNumCornerEqs().
|
overridevirtual |
The only method any matrix class needs to implement
Reimplemented from TPZMatrix< TVar >.
Definition at line 148 of file tpzdohrmatrix.cpp.
References TPZDohrAssembleList< TVar >::AddItem(), TPZPersistenceManager::CloseWrite(), TPZMatrix< TVar >::Cols(), TPZMatrix< TVar >::Error(), TPZDohrMatrix< TVar, TSubStruct >::fAssembly, TPZDohrMatrix< TVar, TSubStruct >::fGlobal, TPZTimeTemp::fMultiply, TPZDohrMatrix< TVar, TSubStruct >::fNumThreads, TPZDohrMatrix< TVar, TSubStruct >::MultAddTBB(), TPZPersistenceManager::OpenWrite(), TPZMatrix< TVar >::PrepareZ(), TPZStack< T, NumExtAlloc >::Push(), PZ_PTHREAD_CREATE, PZ_PTHREAD_JOIN, TPZFMatrix< TVar >::Redim(), TPZfTime::ReturnTimeDouble(), TPZMatrix< TVar >::Rows(), tempo, and TPZPersistenceManager::WriteToFile().
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct().
|
virtual |
It computes z = beta * y + alpha * opt(this)*x but z and x can not overlap in memory.
x | Is x on the above operation |
y | Is y on the above operation |
z | Is z on the above operation |
alpha | Is alpha on the above operation |
beta | Is beta on the above operation |
opt | Indicates if is Transpose or notThe only method any matrix class needs to implement with TBB |
Definition at line 108 of file tpzdohrmatrix.cpp.
References TPZMatrix< TVar >::Cols(), TPZMatrix< TVar >::Error(), TPZDohrMatrix< TVar, TSubStruct >::fAssembly, TPZDohrMatrix< TVar, TSubStruct >::fGlobal, TPZMatrix< TVar >::PrepareZ(), PZ_PTHREAD_CREATE, PZ_PTHREAD_JOIN, pzenviroment, and TPZMatrix< TVar >::Rows().
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct(), and TPZDohrMatrix< TVar, TSubStruct >::MultAdd().
|
inline |
Definition at line 69 of file tpzdohrmatrix.h.
References TPZDohrMatrix< TVar, TSubStruct >::fNumCoarse.
|
inline |
Definition at line 74 of file tpzdohrmatrix.h.
References TPZDohrMatrix< TVar, TSubStruct >::fNumThreads.
Referenced by TPZDohrPrecond< TVar, TSubStruct >::TPZDohrPrecond().
|
inlineoverridevirtual |
Just a method for tests.
Reimplemented from TPZMatrix< TVar >.
Definition at line 89 of file tpzdohrmatrix.h.
|
overridevirtual |
Unpacks the object structure from a stream of bytes.
buf | The buffer containing the object in a packed form |
context |
Reimplemented from TPZMatrix< TVar >.
Definition at line 306 of file tpzdohrmatrix.cpp.
References TPZDohrMatrix< TVar, TSubStruct >::ClassId(), DebugStop, TPZDohrMatrix< TVar, TSubStruct >::fAssembly, TPZDohrMatrix< TVar, TSubStruct >::fGlobal, TPZDohrMatrix< TVar, TSubStruct >::fNumCoarse, TPZDohrMatrix< TVar, TSubStruct >::fNumThreads, TPZPersistenceManager::GetAutoPointer(), TPZStream::Read(), TPZMatrix< TVar >::Read(), and SAVEABLE_SKIP_NOTE.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct().
|
virtual |
Unpacks the object structure from a stream of bytes.
buf | The buffer containing the object in a packed form |
context |
Reimplemented from TPZMatrix< TVar >.
Definition at line 362 of file tpzdohrmatrix.cpp.
References DebugStop.
|
virtual |
Unpacks the object structure from a stream of bytes.
buf | The buffer containing the object in a packed form |
context |
Reimplemented from TPZMatrix< TVar >.
Definition at line 367 of file tpzdohrmatrix.cpp.
References DebugStop.
|
virtual |
Unpacks the object structure from a stream of bytes.
buf | The buffer containing the object in a packed form |
context |
Reimplemented from TPZMatrix< TVar >.
Definition at line 372 of file tpzdohrmatrix.cpp.
References DebugStop.
|
virtual |
Unpacks the object structure from a stream of bytes.
buf | The buffer containing the object in a packed form |
context |
Reimplemented from TPZMatrix< TVar >.
Definition at line 377 of file tpzdohrmatrix.cpp.
References DebugStop.
|
inline |
Definition at line 100 of file tpzdohrmatrix.h.
References TPZDohrMatrix< TVar, TSubStruct >::Initialize().
Referenced by TPZDohrStructMatrix::Create(), TPZGenSubStruct::InitializeDohr(), and TPZGenSubStruct::InitializeDohrCondense().
|
inline |
Definition at line 79 of file tpzdohrmatrix.h.
References substruct_tst14.test::numthreads.
Referenced by TPZDohrStructMatrix::Assemble().
|
inline |
Definition at line 64 of file tpzdohrmatrix.h.
References TPZDohrMatrix< TVar, TSubStruct >::fGlobal.
Referenced by TPZDohrStructMatrix::Assemble(), TPZDohrStructMatrix::AssembleTBB(), main(), only_assemble(), and TPZDohrPrecond< TVar, TSubStruct >::Read().
|
overridevirtual |
Packs the object structure in a stream of bytes.
buf | Buffer which will receive the bytes |
withclassid |
Reimplemented from TPZMatrix< TVar >.
Definition at line 338 of file tpzdohrmatrix.cpp.
References TPZDohrMatrix< TVar, TSubStruct >::ClassId(), TPZDohrMatrix< TVar, TSubStruct >::fAssembly, TPZDohrMatrix< TVar, TSubStruct >::fGlobal, TPZDohrMatrix< TVar, TSubStruct >::fNumCoarse, TPZDohrMatrix< TVar, TSubStruct >::fNumThreads, SAVEABLE_STR_NOTE, TPZStream::Write(), TPZMatrix< TVar >::Write(), and TPZPersistenceManager::WritePointer().
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddSubstruct(), and main().
|
virtual |
Packs the object structure in a stream of bytes.
buf | Buffer which will receive the bytes |
withclassid |
Reimplemented from TPZMatrix< TVar >.
Definition at line 383 of file tpzdohrmatrix.cpp.
References DebugStop.
|
virtual |
Packs the object structure in a stream of bytes.
buf | Buffer which will receive the bytes |
withclassid |
Reimplemented from TPZMatrix< TVar >.
Definition at line 388 of file tpzdohrmatrix.cpp.
References DebugStop.
|
virtual |
Packs the object structure in a stream of bytes.
buf | Buffer which will receive the bytes |
withclassid |
Reimplemented from TPZMatrix< TVar >.
Definition at line 393 of file tpzdohrmatrix.cpp.
References DebugStop.
|
virtual |
Packs the object structure in a stream of bytes.
buf | Buffer which will receive the bytes |
withclassid |
Reimplemented from TPZMatrix< TVar >.
Definition at line 398 of file tpzdohrmatrix.cpp.
References DebugStop.
TPZAutoPointer<TPZDohrAssembly<TVar> > TPZDohrMatrix< TVar, TSubStruct >::fAssembly |
Definition at line 45 of file tpzdohrmatrix.h.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::Initialize(), main(), TPZDohrMatrix< TVar, TSubStruct >::MultAdd(), TPZDohrMatrix< TVar, TSubStruct >::MultAddTBB(), TPZDohrPrecond< TVar, TSubStruct >::Read(), TPZDohrMatrix< TVar, TSubStruct >::Read(), and TPZDohrMatrix< TVar, TSubStruct >::Write().
|
private |
Definition at line 36 of file tpzdohrmatrix.h.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::AddInternalSolution(), TPZDohrMatrix< TVar, TSubStruct >::AdjustResidual(), TPZDohrMatrix< TVar, TSubStruct >::Initialize(), TPZDohrMatrix< TVar, TSubStruct >::MultAdd(), TPZDohrMatrix< TVar, TSubStruct >::MultAddTBB(), TPZDohrMatrix< TVar, TSubStruct >::Read(), TPZDohrMatrix< TVar, TSubStruct >::SubStructures(), and TPZDohrMatrix< TVar, TSubStruct >::Write().
|
private |
Definition at line 38 of file tpzdohrmatrix.h.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::NumCoarse(), TPZDohrMatrix< TVar, TSubStruct >::Read(), and TPZDohrMatrix< TVar, TSubStruct >::Write().
|
private |
Number of threads that will be used during the matrix vector multiplication.
Definition at line 41 of file tpzdohrmatrix.h.
Referenced by TPZDohrMatrix< TVar, TSubStruct >::MultAdd(), TPZDohrMatrix< TVar, TSubStruct >::NumThreads(), TPZDohrMatrix< TVar, TSubStruct >::Read(), and TPZDohrMatrix< TVar, TSubStruct >::Write().