0025720: Incorrect code of math classes can lead to unpredicted behavior of algorithms
[occt.git] / src / math / math_NewtonMinimum.lxx
index dd6500a..688945b 100644 (file)
 
 #include <StdFail_NotDone.hxx>
 
+inline void math_NewtonMinimum::Delete() const
+{
+}
+
+inline Standard_Boolean math_NewtonMinimum::IsConverged() const 
+{
+  return ( (TheStep.Norm() <= XTol ) || 
+    ( Abs(TheMinimum-PreviousMinimum) <= XTol * Abs(PreviousMinimum) ));
+}
+
 inline Standard_Boolean math_NewtonMinimum::IsDone() const 
 {
   return Done;