Class documentation of Concepts

Loading...
Searching...
No Matches
pardisoFabric.hh
Go to the documentation of this file.
1
6#ifndef pardisoFabric_hh
7#define pardisoFabric_hh
8
9#include "pardiso.hh"
10#include "solverFabric.hh"
11
12namespace concepts {
13
14 // ********************************************************* PardisoFabric **
15
19 class PardisoFabric : public SolverFabric<Real> {
20 public:
21 PardisoFabric(enum Pardiso::MATRIX_TYPE type) : type_(type) {}
22 virtual Operator<Real>* operator()(Operator<Real>& matrix) {
23 return new Pardiso(matrix, type_);
24 }
26 return new Pardiso(matrix, type_);
27 }
28 protected:
29 virtual std::ostream& info(std::ostream& os) const {
30 return os << concepts::typeOf(*this)<<"(" << type_ << ')';
31 }
32 private:
33 enum Pardiso::MATRIX_TYPE type_;
34 };
35
36} // concepts
37
38#endif // pardisoFabric_hh
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
MATRIX_TYPE
Type of matrix to solve.
Definition pardiso.hh:46
virtual Operator< Real > * operator()()=0
std::string typeOf(const T &t)
Definition output.hh:43
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320