7fd59977 |
1 | // File: math_NewtonMinimum.lxx |
2 | // Created: Fri May 3 09:38:48 1996 |
3 | // Author: Philippe MANGIN |
4 | // <pmn@sgi38> |
5 | |
6 | #include <StdFail_NotDone.hxx> |
7 | |
8 | inline Standard_Boolean math_NewtonMinimum::IsDone() const |
9 | { |
10 | return Done; |
11 | } |
12 | |
13 | inline const math_Vector& math_NewtonMinimum::Location() const |
14 | { |
15 | StdFail_NotDone_Raise_if(!Done, "NewtonMinimum"); |
16 | return TheLocation; |
17 | } |
18 | |
19 | inline void math_NewtonMinimum::Location(math_Vector& Loc) const |
20 | { |
21 | StdFail_NotDone_Raise_if(!Done, "NewtonMinimum"); |
22 | Loc = TheLocation; |
23 | } |
24 | |
25 | inline Standard_Real math_NewtonMinimum::Minimum() const |
26 | { |
27 | StdFail_NotDone_Raise_if(!Done, "NewtonMinimum"); |
28 | return TheMinimum; |
29 | } |
30 | |
31 | inline const math_Vector& math_NewtonMinimum::Gradient() const |
32 | { |
33 | StdFail_NotDone_Raise_if(!Done, "NewtonMinimum"); |
34 | return TheGradient; |
35 | } |
36 | |
37 | inline void math_NewtonMinimum::Gradient(math_Vector& Grad) const |
38 | { |
39 | StdFail_NotDone_Raise_if(!Done, "NewtonMinimum"); |
40 | Grad = TheGradient; |
41 | } |
42 | |
43 | inline Standard_Integer math_NewtonMinimum::NbIterations() const |
44 | { |
45 | StdFail_NotDone_Raise_if(!Done, "NewtonMinimum"); |
46 | return nbiter; |
47 | } |
48 | |