All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianElimination.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_SOLVERS_GAUSSIANELIMINATION_H_
23 #define _BLAZE_MATH_SOLVERS_GAUSSIANELIMINATION_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
35 
36 
37 namespace blaze {
38 
39 //=================================================================================================
40 //
41 // CLASS DEFINITION
42 //
43 //=================================================================================================
44 
45 //*************************************************************************************************
53 {
54  public:
55  //**Constructors********************************************************************************
58  explicit GaussianElimination();
60  //**********************************************************************************************
61 
62  //**Solver functions****************************************************************************
65  inline bool solve( LSE& lse );
66  bool solve( const CMatMxN& A, const VecN& b, VecN& x );
68  //**********************************************************************************************
69 
70  private:
71  //**Member variables****************************************************************************
75  VecN b_;
76 
77  //**********************************************************************************************
78 };
79 //*************************************************************************************************
80 
81 
82 
83 
84 //=================================================================================================
85 //
86 // SOLVER FUNCTIONS
87 //
88 //=================================================================================================
89 
90 //*************************************************************************************************
101 inline bool GaussianElimination::solve( LSE& lse )
102 {
103  return solve( lse.A_, lse.b_, lse.x_ );
104 }
105 //*************************************************************************************************
106 
107 } // namespace blaze
108 
109 #endif