TBCI Numerical high perf. C++ Library 2.8.0
noprecond.h
Go to the documentation of this file.
1
9
10#ifndef TBCI_SOLVER_NOPRECOND_H
11#define TBCI_SOLVER_NOPRECOND_H
12
13#include "tbci/solver/precond.h"
14
16
21template <typename T, typename MatrixType = BdMatrix<T> >
22class NoPreconditioner : public Preconditioner_Sig<T, MatrixType >
23{
24public:
28
29 // update-Funktion
30 void update (const MatrixType &A) {}
31
32 // Solve-Funktionen
33 /*template <typename T>*/ inline TVector<T> solve (const Vector<T> &v) const
34 { TVector<T> tv(v); return tv; }
35 /*template <typename T>*/ inline TVector<T> solve (TVector<T> tv) const { return tv; }
36
37 /*template <typename T>*/ inline TVector<T> transSolve (const Vector<T> &v) const
38 { TVector<T> tv(v); return tv; }
39 /*template <typename T>*/ inline TVector<T> transSolve ( TVector<T> tv) const
40 { return tv; }
41};
42
43
45
46#endif /* TBCI_SOLVER_NOPRECOND_H */
#define NAMESPACE_END
Definition basics.h:323
#define NAMESPACE_TBCI
Definition basics.h:317
void update(const MatrixType &A)
Definition noprecond.h:30
TVector< T > transSolve(const Vector< T > &v) const
Definition noprecond.h:37
NoPreconditioner(const MatrixType &A)
Definition noprecond.h:26
TVector< T > solve(TVector< T > tv) const
Definition noprecond.h:35
TVector< T > solve(const Vector< T > &v) const
Definition noprecond.h:33
TVector< T > transSolve(TVector< T > tv) const
Definition noprecond.h:39
Temporary Base Class Idiom: Class TVector is used for temporary variables.
Definition vector.h:73
#define MatrixType