You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
vectorial
bramblePasciakFabric.hh
Go to the documentation of this file.
1
6
#ifndef BramblePasciakfabric_hh
7
#define BramblePasciakfabric_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 "
bramblePasciak.hh
"
17
#include "
operator/solverFabric.hh
"
18
19
namespace
vectorial
{
20
21
using
concepts::Real
;
22
23
// ************************************************** BramblePasciakFabric **
24
33
class
BramblePasciakFabric
:
public
concepts::SolverFabric
<Real> {
34
public
:
41
BramblePasciakFabric
(
concepts::Operator<Real>
& A,
42
concepts::Operator<Real>
& B,
43
concepts::Operator<Real>
& Bt,
44
concepts::Operator<Real>
& C,
45
concepts::Operator<Real>
& W,
46
Real maxeps = EPS,
47
int
maxit = 0, uint relres = 0)
48
: A_(A), B_(B), Bt_(Bt), C_(C), W_(W),
49
maxeps_(maxeps), maxit_(maxit), relres_(relres) { }
50
virtual
concepts::Operator<Real>
* operator()
51
(
concepts::Operator<Real>
& matrix) {
52
return
new
BramblePasciak
(A_, B_, Bt_, C_, W_, maxeps_, maxit_,
53
relres_);
54
}
55
protected
:
56
virtual
std::ostream&
info
(std::ostream& os)
const
{
57
return
os <<
concepts::typeOf
(*
this
)<<
"(maxeps = "
<< maxeps_ <<
", maxit = "
58
<< maxit_ <<
", relres = "
<< relres_ <<
")"
;
59
}
60
private
:
62
concepts::Operator<Real>
& A_;
64
concepts::Operator<Real>
& B_;
66
concepts::Operator<Real>
& Bt_;
68
concepts::Operator<Real>
& C_;
70
concepts::Operator<Real>
& W_;
72
Real maxeps_;
74
int
maxit_;
76
uint relres_;
77
};
78
79
}
// namespace vectorial
80
81
#endif
// BramblePasciakfabric_hh
bramblePasciak.hh
concepts::Operator
Definition
compositions.hh:42
concepts::SolverFabric
Definition
solverFabric.hh:22
vectorial::BramblePasciakFabric
Definition
bramblePasciakFabric.hh:33
vectorial::BramblePasciakFabric::info
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition
bramblePasciakFabric.hh:56
vectorial::BramblePasciakFabric::BramblePasciakFabric
BramblePasciakFabric(concepts::Operator< Real > &A, concepts::Operator< Real > &B, concepts::Operator< Real > &Bt, concepts::Operator< Real > &C, concepts::Operator< Real > &W, Real maxeps=EPS, int maxit=0, uint relres=0)
Definition
bramblePasciakFabric.hh:41
vectorial::BramblePasciak
Definition
bramblePasciak.hh:54
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