Class documentation of Concepts

Loading...
Searching...
No Matches
umfpackFabric.hh
Go to the documentation of this file.
1
6// fabric class for Umfpack
7
8#ifndef umfpackFabric_hh
9#define umfpackFabric_hh
10
11#include "umfpack.hh"
12#include "solverFabric.hh"
13
14namespace concepts {
15
16 // ********************************************************* UmfpackFabric **
17
21 class UmfpackFabric : public SolverFabric<Real> {
22 public:
23 UmfpackFabric(bool symmetric = false) : symmetric_(symmetric) {}
25 return NULL;
26 }
27
28 virtual Operator<Real>* operator()(Operator<Real>& matrix) {
29 return new Umfpack(matrix, symmetric_);
30 }
31 virtual Operator<Real>* operator()(SparseMatrix<Real>& matrix) {
32 return new Umfpack(matrix, symmetric_);
33 }
34 protected:
35 virtual std::ostream& info(std::ostream& os) const {
36 return os << concepts::typeOf(*this)<<"()";
37 }
38 private:
39 bool symmetric_;
40 };
41
42} // concepts
43
44#endif // umfpackFabric_hh
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual Operator< Real > * operator()()
std::string typeOf(const T &t)
Definition output.hh:43
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320