lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] odd/eraseme_error 4d0358c 04/10: Rename an enumerati


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/eraseme_error 4d0358c 04/10: Rename an enumeration
Date: Wed, 7 Jul 2021 06:22:13 -0400 (EDT)

branch: odd/eraseme_error
commit 4d0358c0d9195e3ab270b723b4afc4a3e82eabd9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Rename an enumeration
    
    Soon it will contain techniques other than interpolation.
---
 zero.hpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/zero.hpp b/zero.hpp
index 1a9f80b..f22db1c 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -40,7 +40,7 @@ enum root_bias
     ,bias_higher // Require  0.0 <= f(z).
     };
 
-enum interpolation_technique
+enum root_technique
     {interpolate_initialization
     ,interpolate_bisection0
     ,interpolate_linear
@@ -245,10 +245,10 @@ root_type lmi_root
     ,detail::RoundT  round_dec = std::identity()
     )
 {
-    constexpr double        epsilon   {std::numeric_limits<double>::epsilon()};
+    constexpr double epsilon   {std::numeric_limits<double>::epsilon()};
 
-    int                     n_iter    {0};
-    interpolation_technique technique {interpolate_initialization};
+    int              n_iter    {0};
+    root_technique   technique {interpolate_initialization};
 
     os_trace
         << "#eval"
@@ -500,8 +500,8 @@ double brent_zero
     // machine precision and t is a positive tolerance. Assumes
     // that f(a) and f(b) have different signs.
 
-    int                     n_iter    {0};
-    interpolation_technique technique {interpolate_initialization};
+    int            n_iter    {0};
+    root_technique technique {interpolate_initialization};
 
     os_trace
         << "#eval"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]