NeoPZ
TPZCopySolve.h
Go to the documentation of this file.
1 
5 /* Generated by Together */
6 
7 #ifndef TPZCOPYSOLVE_H
8 #define TPZCOPYSOLVE_H
9 #include "pzsolve.h"
10 #include "pzfmatrix.h"
11 
12 
17 template<class TVar>
18 class TPZCopySolve: public TPZMatrixSolver<TVar>
19 {
20 public:
21 
23  TPZMatrixSolver<TVar>(mat)
24  {
25  }
26  TPZCopySolve(const TPZCopySolve &other) :
27  TPZMatrixSolver<TVar>(other)
28  {
29  }
37  void Solve(const TPZFMatrix<TVar> &F, TPZFMatrix<TVar> &result, TPZFMatrix<TVar> *residual)
38  {
39  result = F;
40  }
41 
44  {
45  return new TPZCopySolve(*this);
46  }
47 };
48 
49 #endif //TPZCOPYSOLVE_H
Defines a abstract class of solvers which will be used by matrix classes. Solver. ...
Definition: pzmatrix.h:32
Defines a class of matrix solvers. Solver.
Definition: pzanalysis.h:24
TPZSolver< TVar > * Clone() const
Clones the current object returning a pointer of type TPZSolver.
Definition: TPZCopySolve.h:43
TPZCopySolve(TPZMatrix< TVar > *mat)
Definition: TPZCopySolve.h:22
Contains TPZMatrixclass which implements full matrix (using column major representation).
Full matrix class. Matrix.
Definition: pzfmatrix.h:32
TPZCopySolve(const TPZCopySolve &other)
Definition: TPZCopySolve.h:26
To solve clones of the given matrix. Solver.
Definition: TPZCopySolve.h:18
Contains TPZSolver class which defines a abstract class of solvers which will be used by matrix class...
void Solve(const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual)
Solves the system of linear equations stored in current matrix As this class implements only a copy ...
Definition: TPZCopySolve.h:37
Root matrix class (abstract). Matrix.
Definition: pzmatrix.h:60