[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.
- [lmi-commits] [lmi] master updated (47f54ead -> 77cc4d65), Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master 1b9395f2 03/11: Improve documentation, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master 699308ab 01/11: Improve documentation, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master 086ce6b3 06/11: Fix a probable defect introduced 20210314T1905Z, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master 284efedf 08/11: For immediate reversion: binary exponentiation, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master f920e584 10/11: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master 43bbe463 05/11: Use lmi::expm1() and lmi::log1p() in a unit-test function, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master 2c0ec871 07/11: Use lmi rather than std functions, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master b1b2ed4f 09/11: Revert "For immediate reversion: binary exponentiation", Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master b6752650 02/11: Improve documentation, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master a110f9a0 04/11: Write fdlibm forwarding functions out of line, Greg Chicares, 2022/05/26
- [lmi-commits] [lmi] master 77cc4d65 11/11: Prefer nonstd::power() to std::pow() in a particular case, Greg Chicares, 2022/05/26