34 mMaxIterationsNumber=100;
69 mMaxIterationsNumber=nIterations;
139 return solve(A,b,x,*mW.get());
tUInt & getIterationsNumber()
get the iterations number
Definition: MATH_Solver.h:103
const tReal & getTolerance() const
get the tolerance value to detect convergence
Definition: MATH_Solver.h:89
tUInt mIterationsNumber
Definition: MATH_Solver.h:26
const tUInt & getIterationsNumber() const
get the iterations number
Definition: MATH_Solver.h:96
This class describes a general matrix interface used in solver.
Definition: MATH_Matrix.h:20
MATH_Solver(void)
create a solver
Definition: MATH_Solver.h:33
virtual SP::MATH_Vector NewInstance() const =0
return a share pointer to a new instance of this
tReal mTolerance
Definition: MATH_Solver.h:23
virtual ~MATH_Solver(void)
destroy a solver
Definition: MATH_Solver.h:47
void setTolerance(const tReal &eps)
set the tolerance value to detect convergence
Definition: MATH_Solver.h:74
#define tBoolean
Definition: types.h:139
tReal mError
Definition: MATH_Solver.h:24
tBoolean solve(const MATH_Matrix &A, MATH_Vector &b, MATH_Vector &x)
solve
Definition: MATH_Solver.h:137
#define null
Definition: types.h:144
tReal & getError()
get theerror of the solution
Definition: MATH_Solver.h:109
void setMaximumIterationsNumber(const tUInt &nIterations)
set the max iteration number
Definition: MATH_Solver.h:68
This class describes a masked vector.
Definition: MATH_Vector.h:16
#define tUInt
Definition: types.h:33
virtual tBoolean solve(const MATH_Matrix &A, MATH_Vector &b, MATH_Vector &x, MATH_Vector &w)=0
solve
This class describes a solver of Ax=b.
Definition: MATH_Solver.h:18
abstract base class for most classes.
Definition: CORE_Object.h:53
tUInt mMaxIterationsNumber
Definition: MATH_Solver.h:25
const tReal & getError() const
get theerror of the solution
Definition: MATH_Solver.h:115
void copy(const MATH_Solver &solver)
copy the attributes of the solver
Definition: MATH_Solver.h:55
SP::MATH_Vector mW
Definition: MATH_Solver.h:28
const tUInt & getMaximumIterationsNumber() const
get the max iteration number
Definition: MATH_Solver.h:83
#define tReal
Definition: types.h:118