Jet  v1.3.3
fdm_linear_system_solver2.h
Go to the documentation of this file.
1 // Copyright (c) 2018 Doyub Kim
2 //
3 // I am making my contributions/submissions to this project solely in my
4 // personal capacity and am not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef INCLUDE_JET_FDM_LINEAR_SYSTEM_SOLVER2_H_
8 #define INCLUDE_JET_FDM_LINEAR_SYSTEM_SOLVER2_H_
9 
10 #include <jet/fdm_linear_system2.h>
11 
12 #include <memory>
13 
14 namespace jet {
15 
18  public:
20 
21  virtual ~FdmLinearSystemSolver2() = default;
22 
24  virtual bool solve(FdmLinearSystem2* system) = 0;
25 
27  virtual bool solveCompressed(FdmCompressedLinearSystem2*) { return false; }
28 };
29 
31 typedef std::shared_ptr<FdmLinearSystemSolver2> FdmLinearSystemSolver2Ptr;
32 
33 } // namespace jet
34 
35 #endif // INCLUDE_JET_FDM_LINEAR_SYSTEM_SOLVER2_H_
jet::FdmCompressedLinearSystem2
Compressed linear system (Ax=b) for 2-D finite differencing.
Definition: fdm_linear_system2.h:54
jet::FdmLinearSystem2
Linear system (Ax=b) for 2-D finite differencing.
Definition: fdm_linear_system2.h:36
jet::FdmLinearSystemSolver2::solve
virtual bool solve(FdmLinearSystem2 *system)=0
Solves the given linear system.
jet::FdmLinearSystemSolver2Ptr
std::shared_ptr< FdmLinearSystemSolver2 > FdmLinearSystemSolver2Ptr
Shared pointer type for the FdmLinearSystemSolver2.
Definition: fdm_linear_system_solver2.h:31
jet::FdmLinearSystemSolver2::~FdmLinearSystemSolver2
virtual ~FdmLinearSystemSolver2()=default
jet
Definition: advection_solver2.h:18
jet::FdmLinearSystemSolver2
Abstract base class for 2-D finite difference-type linear system solver.
Definition: fdm_linear_system_solver2.h:17
fdm_linear_system2.h
jet::FdmLinearSystemSolver2::FdmLinearSystemSolver2
FdmLinearSystemSolver2()=default
jet::FdmLinearSystemSolver2::solveCompressed
virtual bool solveCompressed(FdmCompressedLinearSystem2 *)
Solves the given compressed linear system.
Definition: fdm_linear_system_solver2.h:27