FDMLinearSystemSolver2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: FDMLinearSystemSolver2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Abstract base class for 2-D finite difference-type linear system solver.
6 > Created Time: 2017/08/12
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_FDM_LINEAR_SYSTEM_SOLVER2_H
10 #define CUBBYFLOW_FDM_LINEAR_SYSTEM_SOLVER2_H
11 
13 
14 namespace CubbyFlow
15 {
18  {
19  public:
20  virtual ~FDMLinearSystemSolver2() = default;
21 
23  virtual bool Solve(FDMLinearSystem2* system) = 0;
24 
27  {
28  return false;
29  }
30  };
31 
33  using FDMLinearSystemSolver2Ptr = std::shared_ptr<FDMLinearSystemSolver2>;
34 }
35 
36 #endif
std::shared_ptr< FDMLinearSystemSolver2 > FDMLinearSystemSolver2Ptr
Shared pointer type for the FDMLinearSystemSolver2.
Definition: FDMLinearSystemSolver2.h:33
Linear system (Ax=b) for 2-D finite differencing.
Definition: FDMLinearSystem2.h:39
virtual ~FDMLinearSystemSolver2()=default
Definition: pybind11Utils.h:24
virtual bool Solve(FDMLinearSystem2 *system)=0
Solves the given linear system.
Compressed linear system (Ax=b) for 2-D finite differencing.
Definition: FDMLinearSystem2.h:58
virtual bool SolveCompressed(FDMCompressedLinearSystem2 *)
Solves the given compressed linear system.
Definition: FDMLinearSystemSolver2.h:26
Abstract base class for 2-D finite difference-type linear system solver.
Definition: FDMLinearSystemSolver2.h:17