PARALUTION  1.0.0
PARALUTION
lu.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_DIRECT_LU_HPP_
2 #define PARALUTION_DIRECT_LU_HPP_
3 
4 #include "../solver.hpp"
5 
6 namespace paralution {
7 
8 template <class OperatorType, class VectorType, typename ValueType>
9 class LU : public DirectLinearSolver<OperatorType, VectorType, ValueType> {
10 
11 public:
12 
13  LU();
14  virtual ~LU();
15 
16  virtual void Print(void) const;
17 
18  virtual void Build(void);
19  virtual void Clear(void);
20 
21 protected:
22 
23  virtual void Solve_(const VectorType &rhs, VectorType *x);
24 
25  virtual void PrintStart_(void) const;
26  virtual void PrintEnd_(void) const;
27 
28  virtual void MoveToHostLocalData_(void);
29  virtual void MoveToAcceleratorLocalData_(void);
30 
31 private:
32 
33  OperatorType lu_;
34 
35 };
36 
37 
38 }
39 
40 #endif // PARALUTION_DIRECT_LU_HPP_
Base class for all linear (direct) solvers.
Definition: solver.hpp:229
virtual void MoveToHostLocalData_(void)
Move all local data to the host.
Definition: lu.cpp:96
Definition: lu.hpp:9
virtual void Print(void) const
Print information about the solver.
Definition: lu.cpp:33
OperatorType lu_
Definition: lu.hpp:33
virtual void Build(void)
Build the solver (data allocation, structure computation, numerical computation)
Definition: lu.cpp:55
virtual void Clear(void)
Clear (free all local data) the solver.
Definition: lu.cpp:81
virtual void PrintStart_(void) const
Print starting msg of the solver.
Definition: lu.cpp:41
Definition: backend_manager.cpp:43
const IndexType const IndexType const IndexType const ValueType const ValueType const ValueType * x
Definition: cuda_kernels_coo.hpp:91
virtual void MoveToAcceleratorLocalData_(void)
Move all local data to the accelerator.
Definition: lu.cpp:107
virtual ~LU()
Definition: lu.cpp:23
LU()
Definition: lu.cpp:15
virtual void PrintEnd_(void) const
Print ending msg of the solver.
Definition: lu.cpp:48
virtual void Solve_(const VectorType &rhs, VectorType *x)
Solution procedure.
Definition: lu.cpp:118