From e0737c56c1e384e05064a0c6e1ac46979371041b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 19 Dec 2018 22:58:32 +0100 Subject: New upstream version 2.0.0+repack --- .../libs/math/doc/html/math_toolkit/run_time.html | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 boost/libs/math/doc/html/math_toolkit/run_time.html (limited to 'boost/libs/math/doc/html/math_toolkit/run_time.html') diff --git a/boost/libs/math/doc/html/math_toolkit/run_time.html b/boost/libs/math/doc/html/math_toolkit/run_time.html new file mode 100644 index 00000000..3f1bd3a9 --- /dev/null +++ b/boost/libs/math/doc/html/math_toolkit/run_time.html @@ -0,0 +1,73 @@ + + + +Run-time GCD & LCM Determination + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+ +

+ Header: <boost/math/common_factor_rt.hpp> +

+
template < typename IntegerType >
+IntegerType  boost::math::gcd( IntegerType const &a, IntegerType const &b );
+
+template < typename ForwardIterator >
+std::pair<typename std::iterator_traits<I>::value_type, I> gcd_range(I first, I last);
+
+template < typename IntegerType >
+IntegerType  boost::math::lcm( IntegerType const &a, IntegerType const &b );
+
+

+ The boost::math::gcd + function template returns the greatest common (nonnegative) divisor of the + two integers passed to it. boost::math::gcd_range is the iteration of the above gcd + algorithm over a range, returning the greatest common divisor of all the elements. + The algorithm terminates when the gcd reaches unity or the end of the range. + Thus it also returns the iterator after the last element inspected because + this may not be equal to the end of the range. The boost::math::lcm function + template returns the least common (nonnegative) multiple of the two integers + passed to it. The function templates are parameterized on the function arguments' + IntegerType, which is also the return type. Internally, these function templates + use an object of the corresponding version of the gcd_evaluator + and lcm_evaluator class templates, + respectively. +

+
+ + + +
+
+
+PrevUpHomeNext +
+ + -- cgit v1.2.3