You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
operator
mumpsFabric.hh
Go to the documentation of this file.
1
6
#ifndef mumpsfabric_hh
7
#define mumpsfabric_hh
8
9
#include "
mumps.hh
"
10
#include "
solverFabric.hh
"
11
#include "
sparseMatrix.hh
"
12
#include "
CRS.hh
"
13
14
namespace
concepts
{
15
16
// *********************************************************** MumpsFabric **
17
21
template
<
class
F = Real>
22
class
MumpsFabric
:
public
SolverFabric
<F> {
23
public
:
25
virtual
Operator<F>
*
operator()
() {
return
new
Operator<F>
(1,1);};
26
virtual
Mumps<F>
*
operator()
(
Operator<F>
& matrix) {
27
if
(
dynamic_cast<
concepts::CRSConvertable<F>
*
>
(&matrix))
28
return
new
Mumps<F>
(matrix);
29
else
{
30
concepts::SparseMatrix<F>
tmpMatrix
(matrix);
31
return
new
Mumps<F>
(
tmpMatrix
);
32
}
33
}
34
protected
:
35
virtual
std::ostream&
info
(std::ostream&
os
)
const
{
36
return
os
<<
concepts::typeOf
(*
this
)<<
"()"
;
37
}
38
};
39
40
}
// concepts
41
42
#endif
// mumpsfabric_hh
CRS.hh
concepts::CRSConvertable
Definition
CRS.hh:30
concepts::MumpsFabric
Definition
mumpsFabric.hh:22
concepts::MumpsFabric::info
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition
mumpsFabric.hh:35
concepts::MumpsFabric::operator()
virtual Operator< F > * operator()()
Unused, avoids the "No return statement in function returning non-void [-Wreturn-type]" warning.
Definition
mumpsFabric.hh:25
concepts::Mumps
Definition
mumps.hh:72
concepts::Operator
Definition
compositions.hh:42
concepts::SolverFabric
Definition
solverFabric.hh:22
concepts::SparseMatrix
Definition
sparseMatrix.hh:65
mumps.hh
concepts
Definition
pml_formula.h:16
concepts::typeOf
std::string typeOf(const T &t)
Definition
output.hh:43
concepts::makeSet
Set< F > makeSet(uint n, const F &first,...)
Definition
set.hh:320
solverFabric.hh
sparseMatrix.hh
Generated on Wed Sep 13 2023 21:06:22 for Concepts by
1.9.8