forked from boostorg/integer
Reorganise directory structure to make things easier to find and maintain.
[SVN r84143]
This commit is contained in:
committed by
Peter Dimov
parent
9677dbd035
commit
ae8ee599ac
@ -1,22 +1,4 @@
|
|||||||
[article GCD and LCM
|
[section:gcd_lcm Integer Utilities (Greatest Common Divisor and Least Common Multiple)]
|
||||||
[quickbook 1.3]
|
|
||||||
[copyright 2001-2002 Daryle Walker]
|
|
||||||
[license
|
|
||||||
Distributed under the Boost Software License, Version 1.0.
|
|
||||||
(See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
[@http://www.boost.org/LICENSE_1_0.txt http://www.boost.org/LICENSE_1_0.txt])
|
|
||||||
]
|
|
||||||
[authors [Walker, Daryle]]
|
|
||||||
[category math]
|
|
||||||
[last-revision $Date: 2006-12-29 11:08:32 +0000 (Fri, 29 Dec 2006) $]
|
|
||||||
]
|
|
||||||
|
|
||||||
This manual is also available in
|
|
||||||
[@http://sourceforge.net/projects/boost/files/boost-docs/
|
|
||||||
printer friendly PDF format].
|
|
||||||
|
|
||||||
|
|
||||||
[section:gcd_lcm Greatest Common Divisor and Least Common Multiple]
|
|
||||||
|
|
||||||
[section Introduction]
|
[section Introduction]
|
||||||
|
|
||||||
@ -59,7 +41,7 @@ programming problems.
|
|||||||
|
|
||||||
[section GCD Function Object]
|
[section GCD Function Object]
|
||||||
|
|
||||||
[*Header: ] [@../../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>]
|
[*Header: ] [@../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>]
|
||||||
|
|
||||||
template < typename IntegerType >
|
template < typename IntegerType >
|
||||||
class boost::math::gcd_evaluator
|
class boost::math::gcd_evaluator
|
||||||
@ -91,7 +73,7 @@ gcd_evaluator class template.
|
|||||||
|
|
||||||
[section LCM Function Object]
|
[section LCM Function Object]
|
||||||
|
|
||||||
[*Header: ] [@../../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>]
|
[*Header: ] [@../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>]
|
||||||
|
|
||||||
template < typename IntegerType >
|
template < typename IntegerType >
|
||||||
class boost::math::lcm_evaluator
|
class boost::math::lcm_evaluator
|
||||||
@ -124,7 +106,7 @@ specialize on the lcm_evaluator class template.
|
|||||||
|
|
||||||
[section:run_time Run-time GCD & LCM Determination]
|
[section:run_time Run-time GCD & LCM Determination]
|
||||||
|
|
||||||
[*Header: ] [@../../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>]
|
[*Header: ] [@../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>]
|
||||||
|
|
||||||
template < typename IntegerType >
|
template < typename IntegerType >
|
||||||
IntegerType boost::math::gcd( IntegerType const &a, IntegerType const &b );
|
IntegerType boost::math::gcd( IntegerType const &a, IntegerType const &b );
|
||||||
@ -145,7 +127,7 @@ gcd_evaluator and lcm_evaluator class templates, respectively.
|
|||||||
|
|
||||||
[section:compile_time Compile time GCD and LCM determination]
|
[section:compile_time Compile time GCD and LCM determination]
|
||||||
|
|
||||||
[*Header: ] [@../../../../../boost/math/common_factor_ct.hpp <boost/math/common_factor_ct.hpp>]
|
[*Header: ] [@../../../../boost/math/common_factor_ct.hpp <boost/math/common_factor_ct.hpp>]
|
||||||
|
|
||||||
typedef ``['unspecified]`` static_gcd_type;
|
typedef ``['unspecified]`` static_gcd_type;
|
||||||
|
|
||||||
@ -206,8 +188,8 @@ is beyond the range of `static_gcd_type`.
|
|||||||
[section:header Header <boost/math/common_factor.hpp>]
|
[section:header Header <boost/math/common_factor.hpp>]
|
||||||
|
|
||||||
This header simply includes the headers
|
This header simply includes the headers
|
||||||
[@../../../../../boost/math/common_factor_ct.hpp <boost/math/common_factor_ct.hpp>]
|
[@../../../../boost/math/common_factor_ct.hpp <boost/math/common_factor_ct.hpp>]
|
||||||
and [@../../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>].
|
and [@../../../../boost/math/common_factor_rt.hpp <boost/math/common_factor_rt.hpp>].
|
||||||
|
|
||||||
Note this is a legacy header: it used to contain the actual implementation,
|
Note this is a legacy header: it used to contain the actual implementation,
|
||||||
but the compile-time and run-time facilities
|
but the compile-time and run-time facilities
|
||||||
@ -217,7 +199,7 @@ were moved to separate headers (since they were independent of each other).
|
|||||||
|
|
||||||
[section:demo Demonstration Program]
|
[section:demo Demonstration Program]
|
||||||
|
|
||||||
The program [@../../../../../libs/math/test/common_factor_test.cpp common_factor_test.cpp] is a demonstration of the results from
|
The program [@../../../../libs/math/test/common_factor_test.cpp common_factor_test.cpp] is a demonstration of the results from
|
||||||
instantiating various examples of the run-time GCD and LCM function
|
instantiating various examples of the run-time GCD and LCM function
|
||||||
templates and the compile-time GCD and LCM class templates.
|
templates and the compile-time GCD and LCM class templates.
|
||||||
(The run-time GCD and LCM class templates are tested indirectly through
|
(The run-time GCD and LCM class templates are tested indirectly through
|
||||||
|
Reference in New Issue
Block a user