lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master f920e584 10/11: Improve documentation


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f920e584 10/11: Improve documentation
Date: Thu, 26 May 2022 18:14:25 -0400 (EDT)

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

    Improve documentation
---
 stl_extensions.hpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stl_extensions.hpp b/stl_extensions.hpp
index 2fd0e324..f46d66d5 100644
--- a/stl_extensions.hpp
+++ b/stl_extensions.hpp
@@ -70,7 +70,9 @@ template <typename T> inline T 
identity_element(std::multiplies<T>)
     return T(1);
 }
 
-/// Returns x ** n, where 0 <= n.
+/// Returns x ** n, where 0 <= n, by right-to-left binary exponentiation.
+///
+/// See Knuth, TAOCP volume 2, section 4.6.3 (p. 442 in 2nd ed.).
 ///
 /// Note that "multiplication" is required to be associative, but not
 /// necessarily commutative.



reply via email to

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