0022627: Change OCCT memory management defaults
[occt.git] / src / math / math_FunctionSetRoot.lxx
CommitLineData
7fd59977 1// File math_FunctionSetRoot.lxx
2
3#include <StdFail_NotDone.hxx>
4#include <Standard_DimensionError.hxx>
5
6
7inline Standard_Boolean math_FunctionSetRoot::IsDone() const { return Done; }
8
9inline Standard_OStream& operator<<(Standard_OStream& o,
10 const math_FunctionSetRoot& F)
11{
12 F.Dump(o);
13 return o;
14}
15
16
17inline const math_Vector& math_FunctionSetRoot::Root() const{
18 StdFail_NotDone_Raise_if(!Done, " ");
19 return Sol;
20}
21
22
23inline const math_Vector& math_FunctionSetRoot::FunctionSetErrors() const{
24 StdFail_NotDone_Raise_if(!Done, " ");
25 return Delta;
26}
27
28
29inline const math_Matrix& math_FunctionSetRoot::Derivative() const{
30 StdFail_NotDone_Raise_if(!Done, " ");
31 return DF;
32}
33
34inline void math_FunctionSetRoot::Derivative(math_Matrix& Der) const{
35 StdFail_NotDone_Raise_if(!Done, " ");
36 Standard_DimensionError_Raise_if(Der.ColNumber() != Sol.Length(), " ");
37 Der = DF;
38}
39
40
41inline Standard_Integer math_FunctionSetRoot::StateNumber() const{
42 StdFail_NotDone_Raise_if(!Done, " ");
43 return State;
44}
45
46
47inline Standard_Integer math_FunctionSetRoot::NbIterations() const{
48 StdFail_NotDone_Raise_if(!Done, " ");
49 return Kount;
50}
51