summaryrefslogtreecommitdiff
path: root/inc/math_BrentMinimum.lxx
blob: e01d88ce90e928b4b4b2e4f6241c9d9cc262bf43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// file math_BrentMinimum.lxx

#include <StdFail_NotDone.hxx>

inline Standard_Boolean math_BrentMinimum::IsDone() const { return Done; }

inline Standard_OStream& operator<< (Standard_OStream& o,
				     const math_BrentMinimum& Br)
{
  Br.Dump(o);
  return o;
}


inline  Standard_Real math_BrentMinimum::Location() const{
  StdFail_NotDone_Raise_if(!Done, " ");
  return x;
}


inline  Standard_Real math_BrentMinimum::Minimum() const{
  StdFail_NotDone_Raise_if(!Done, " ");
  return fx;
}


inline  Standard_Integer math_BrentMinimum::NbIterations() const{
  StdFail_NotDone_Raise_if(!Done, " ");
  return iter;
}