You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
vectorial
cgUzawaFabric.hh
Go to the documentation of this file.
1
6
#ifndef CGUzawafabric_hh
7
#define CGUzawafabric_hh
8
9
#if __GNUC__ == 2
10
# include <float.h>
11
# define EPS DBL_EPSILON
12
#else
13
# include <limits>
14
# define EPS std::numeric_limits<double>::epsilon()
15
#endif
16
#include "
cgUzawa.hh
"
17
#include "
operator/solverFabric.hh
"
18
19
using
concepts::Real
;
20
21
namespace
vectorial
{
22
23
// ********************************************************* CGUzawaFabric **
24
32
class
CGUzawaFabric
:
public
concepts::SolverFabric
<Real> {
33
public
:
40
CGUzawaFabric
(
concepts::Operator<Real>
& A,
concepts::Operator<Real>
& B,
41
concepts::Operator<Real>
& Bt,
concepts::Operator<Real>
& C,
42
concepts::Operator<Real>
& Ai,
43
Real maxeps = EPS,
44
int
maxit = 0, uint relres = 0)
45
: A_(A), B_(B), Bt_(Bt), C_(C), Ai_(Ai),
46
maxeps_(maxeps), maxit_(maxit), relres_(relres) { }
47
virtual
concepts::Operator<Real>
* operator()
48
(
concepts::Operator<Real>
& matrix) {
49
return
new
CGUzawa
(A_, B_, Bt_, C_, Ai_, maxeps_, maxit_, relres_);
50
}
51
protected
:
52
virtual
std::ostream&
info
(std::ostream& os)
const
{
53
return
os <<
concepts::typeOf
(*
this
)<<
"(maxeps = "
<< maxeps_ <<
", maxit = "
54
<< maxit_ <<
", relres = "
<< relres_ <<
")"
;
55
}
56
private
:
58
concepts::Operator<Real>
& A_;
60
concepts::Operator<Real>
& B_;
62
concepts::Operator<Real>
& Bt_;
64
concepts::Operator<Real>
& C_;
66
concepts::Operator<Real>
& Ai_;
68
Real maxeps_;
70
int
maxit_;
72
uint relres_;
73
};
74
75
}
// namespace vectorial
76
77
#endif
// CGUzawafabric_hh
cgUzawa.hh
concepts::Operator
Definition
compositions.hh:42
concepts::SolverFabric
Definition
solverFabric.hh:22
vectorial::CGUzawaFabric
Definition
cgUzawaFabric.hh:32
vectorial::CGUzawaFabric::CGUzawaFabric
CGUzawaFabric(concepts::Operator< Real > &A, concepts::Operator< Real > &B, concepts::Operator< Real > &Bt, concepts::Operator< Real > &C, concepts::Operator< Real > &Ai, Real maxeps=EPS, int maxit=0, uint relres=0)
Definition
cgUzawaFabric.hh:40
vectorial::CGUzawaFabric::info
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition
cgUzawaFabric.hh:52
vectorial::CGUzawa
Definition
cgUzawa.hh:55
concepts::typeOf
std::string typeOf(const T &t)
Definition
output.hh:43
concepts::Real
double Real
Definition
typedefs.hh:39
vectorial
Definition
spaceTraits.hh:24
solverFabric.hh
Generated on Wed Sep 13 2023 21:06:25 for Concepts by
1.9.8