diff --git a/doc/common_factor.html b/doc/common_factor.html index aa041425a..4f8a1d43b 100644 --- a/doc/common_factor.html +++ b/doc/common_factor.html @@ -23,20 +23,35 @@ programming problems.
This header simply includes the headers <boost/math/common_factor_ct.hpp> +and <boost/math/common_factor_rt.hpp>. +It used to contain the code, but the compile-time and run-time +facilities were moved to separate headers (since they were independent), +and this header maintains compatibility.
+ +namespace boost
{
@@ -62,7 +77,9 @@ template < unsigned long Value1, unsigned long Value2 >
}
--template < typename IntegerType > class boost::math::gcd_evaluator @@ -79,20 +96,20 @@ public: };
The boost::math::gcd_evaluator class template defines
-a function object class to return the greatest common divisor of two
+
The boost::math::gcd_evaluator class template defines a
+function object class to return the greatest common divisor of two
integers. The template is parameterized by a single type, called
-IntegerType here. This type should be a numeric type
-that represents integers. The result of the function object is always
+IntegerType here. This type should be a numeric type that
+represents integers. The result of the function object is always
nonnegative, even if either of the operator arguments is negative.
This function object class template is used in the corresponding
-version of the GCD function template. If
-a numeric type wants to customize evaluations of its greatest common
-divisors, then the type should specialize on the gcd_evaluator
-class template.
gcd_evaluator class template.
--template < typename IntegerType > class boost::math::lcm_evaluator @@ -109,22 +126,22 @@ public: };
The boost::math::lcm_evaluator class template defines
-a function object class to return the least common multiple of two
+
The boost::math::lcm_evaluator class template defines a
+function object class to return the least common multiple of two
integers. The template is parameterized by a single type, called
-IntegerType here. This type should be a numeric type
-that represents integers. The result of the function object is always
-nonnegative, even if either of the operator arguments is negative.
-If the least common multiple is beyond the range of the integer type,
-the results are undefined.
IntegerType here. This type should be a numeric type that
+represents integers. The result of the function object is always
+nonnegative, even if either of the operator arguments is negative. If
+the least common multiple is beyond the range of the integer type, the
+results are undefined.
This function object class template is used in the corresponding
version of the LCM function template. If a
numeric type wants to customize evaluations of its least common
-multiples, then the type should specialize on the lcm_evaluator
-class template.
lcm_evaluator class template.
--template < typename IntegerType > IntegerType boost::math::gcd( IntegerType const &a, IntegerType const &b ); @@ -133,17 +150,18 @@ 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. 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.
The boost::math::gcd function template returns the
+greatest common (nonnegative) divisor of the two integers passed to it.
+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.
-template < unsigned long Value1, unsigned long Value2 > struct boost::math::static_gcd @@ -158,13 +176,14 @@ struct boost::math::static_lcm };
The boost::math::static_gcd and boost::math::static_lcm
-class templates take two value-based template parameters of the
-unsigned long type and have a single static constant data
-member, value, of that same type. The value of that member
-is the greatest common factor or least common multiple, respectively, of
-the template arguments. A compile-time error will occur if the least common
-multiple is beyond the range of an unsigned long.
The boost::math::static_gcd and
+boost::math::static_lcm class templates take two
+value-based template parameters of the unsigned long type
+and have a single static constant data member, value, of
+that same type. The value of that member is the greatest common factor
+or least common multiple, respectively, of the template arguments. A
+compile-time error will occur if the least common multiple is beyond the
+range of an unsigned long.
The author of the Boost compilation of GCD and LCM computations is
Revised November 7, 2001 Revised July 2, 2002 © Copyright Daryle Walker 2001. Permission to copy, use,
+ © Copyright Daryle Walker 2001-2002. Permission to copy, use,
modify, sell and distribute this document is granted provided this
copyright notice appears in all copies. This document is provided
"as is" without express or implied warranty, and with no claim
diff --git a/doc/index.html b/doc/index.html
index bea4f3d5f..d26236eea 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -70,6 +70,8 @@
Revised 30 November, 2001 Revised 2 July, 2002
-
<boost/math/common_factor.hpp>
+ <boost/math/common_factor_ct.hpp>
+ <boost/math/common_factor_rt.hpp>
documentation
Compile-time and run-time class and function
@@ -87,7 +89,7 @@ items.
-