Rollback integration OCC22567 Speed up of math_FunctionSetRoot (used in Extrema)
[occt.git] / src / math / math_FRPR.lxx
1 // file math_Powell.lxx
2
3 #include <StdFail_NotDone.hxx>
4 #include <math_Vector.hxx>
5
6
7 inline Standard_Boolean math_FRPR::IsDone() const { return Done; }
8
9 inline Standard_OStream& operator<<(Standard_OStream& o, 
10                                     const math_FRPR& Fr)
11 {
12   Fr.Dump(o);
13   return o;
14 }
15
16
17 inline const math_Vector& math_FRPR::Location() const{ 
18   StdFail_NotDone_Raise_if(!Done, " ");
19   return TheLocation; 
20 }
21
22
23 inline void math_FRPR::Location(math_Vector& Loc) const{ 
24   StdFail_NotDone_Raise_if(!Done, " ");
25   Loc = TheLocation; 
26 }
27
28
29 inline const math_Vector& math_FRPR::Gradient() const{
30   StdFail_NotDone_Raise_if(!Done, " ");
31   return TheGradient;
32 }
33
34
35 inline  void math_FRPR::Gradient(math_Vector& Grad) const{
36   StdFail_NotDone_Raise_if(!Done, " ");
37   Grad = TheGradient;
38 }
39
40
41 inline  Standard_Real math_FRPR::Minimum() const{ 
42   StdFail_NotDone_Raise_if(!Done, " ");
43   return TheMinimum;
44 }
45
46
47 inline    Standard_Integer math_FRPR::NbIterations() const{
48   StdFail_NotDone_Raise_if(!Done, " ");
49   return Iter;
50 }
51
52
53
54
55