lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 39ec4b06 3/4: Move a comment


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 39ec4b06 3/4: Move a comment
Date: Thu, 18 Aug 2022 06:45:37 -0400 (EDT)

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

    Move a comment
    
    Moved the comment pointing out that 'max' is not one of valarray's
    primitive operations. It had appeared to apply to the uncommented
    line of code following it, which is independent.
---
 expression_template_0_test.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/expression_template_0_test.cpp b/expression_template_0_test.cpp
index 598ded2d..1503a105 100644
--- a/expression_template_0_test.cpp
+++ b/expression_template_0_test.cpp
@@ -296,11 +296,12 @@ void mete_valarray_typical()
         std::valarray<double> va9 = 3.14 - va0;
         va8 += va0;
         va8 += va0 * va1;
+        va9 = (1.0 - va8) * va9;
+
 // This doesn't compile, and std::valarray's only comparable facility
 // is its apply() member function, which applies only unary functions.
 //    va0 = std::max(2.7, va8);
 //    va0 = std::max(va8, va9);
-        va9 = (1.0 - va8) * va9;
         }
 }
 



reply via email to

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