lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1b0ed06 12/22: Change argument order


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1b0ed06 12/22: Change argument order
Date: Sun, 6 Jun 2021 21:38:01 -0400 (EDT)

branch: master
commit 1b0ed06b9c567eca187e3049052f212d9e2d9b52
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Change argument order
    
    Prepare to take the (now) second argument by value.
---
 zero.hpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/zero.hpp b/zero.hpp
index 35e7304..b358279 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -59,8 +59,8 @@ typedef std::pair<double,root_validity> root_type;
 namespace detail
 {
 inline void expatiate
-    (int                    & n_iter
-    ,std::ostream           & os_trace
+    (std::ostream           & os_trace
+    ,int                    & n_iter
     ,interpolation_technique  technique
     ,double                   x
     ,double                   fx
@@ -279,14 +279,14 @@ root_type decimal_root
         }
 
     double fa = static_cast<double>(f(a));
-    detail::expatiate(n_iter, os_trace, technique, a, fa);
+    detail::expatiate(os_trace, n_iter, technique, a, fa);
     if(0.0 == fa) // Note 0.
         {
         return std::make_pair(a, root_is_valid);
         }
 
     double fb = static_cast<double>(f(b));
-    detail::expatiate(n_iter, os_trace, technique, b, fb);
+    detail::expatiate(os_trace, n_iter, technique, b, fb);
     if(0.0 == fb) // Note 0 [bis].
         {
         return std::make_pair(b, root_is_valid);
@@ -410,7 +410,7 @@ root_type decimal_root
         else
             {
             fb = static_cast<double>(f(b));
-            detail::expatiate(n_iter, os_trace, technique, b, fb);
+            detail::expatiate(os_trace, n_iter, technique, b, fb);
             }
         }
 }



reply via email to

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