Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
blaze
math
solvers
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
30
#include <
blaze/math/CompressedMatrix.h
>
31
#include <
blaze/math/DynamicMatrix.h
>
32
#include <
blaze/math/DynamicVector.h
>
33
#include <
blaze/math/problems/LSE.h
>
34
#include <
blaze/math/solvers/Solver.h
>
35
36
37
namespace
blaze {
38
39
//=================================================================================================
40
//
41
// CLASS DEFINITION
42
//
43
//=================================================================================================
44
45
//*************************************************************************************************
52
class
GaussianElimination
:
public
Solver
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****************************************************************************
74
MatMxN
A_
;
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
Generated on Sun Jan 20 2013 08:14:37 by
1.8.3