# HG changeset patch # User Peter Kovacs # Date 1199319849 -3600 # Node ID 22696f89d18300f6dd5db1bdb73fb11ece5572d8 # Parent 062f361aa520889281a3fa59ee4cf9e92f65a030 Small fixes. Documentation fixes. Removed \author tags. Removed superfluous ; characters after function codes. diff -r 062f361aa520 -r 22696f89d183 lemon/random.cc --- a/lemon/random.cc Thu Jan 03 01:08:23 2008 +0100 +++ b/lemon/random.cc Thu Jan 03 01:24:09 2008 +0100 @@ -24,6 +24,6 @@ namespace lemon { /// \brief Global random number generator instance /// - /// A global mersenne twister random number generator instance + /// A global Mersenne Twister random number generator instance. Random rnd; } diff -r 062f361aa520 -r 22696f89d183 lemon/random.h --- a/lemon/random.h Thu Jan 03 01:08:23 2008 +0100 +++ b/lemon/random.h Thu Jan 03 01:24:09 2008 +0100 @@ -73,8 +73,6 @@ ///\ingroup misc ///\file ///\brief Mersenne Twister random number generator -/// -///\author Balazs Dezso namespace lemon { @@ -516,12 +514,10 @@ /// generator which name is \ref lemon::rnd "rnd". Usually it is a /// good programming convenience to use this global generator to get /// random numbers. - /// - /// \author Balazs Dezso class Random { private: - // architecture word + // Architecture word typedef unsigned long Word; _random_bits::RandomCore core; @@ -723,8 +719,8 @@ } /// Gauss distribution with given mean and standard deviation + /// Gauss distribution with given mean and standard deviation /// \sa gauss() - /// double gauss(double mean,double std_dev) { return gauss()*std_dev+mean; @@ -814,6 +810,9 @@ ///@{ /// Uniform distribution on the full unit circle. + + /// Uniform distribution on the full unit circle. + /// dim2::Point disc() { double V1,V2; diff -r 062f361aa520 -r 22696f89d183 lemon/tolerance.h --- a/lemon/tolerance.h Thu Jan 03 01:08:23 2008 +0100 +++ b/lemon/tolerance.h Thu Jan 03 01:24:09 2008 +0100 @@ -48,9 +48,13 @@ ///\sa Tolerance ///\sa Tolerance ///\sa Tolerance +#if defined __GNUC__ && !defined __STRICT_ANSI__ ///\sa Tolerance +#endif ///\sa Tolerance +#if defined __GNUC__ && !defined __STRICT_ANSI__ ///\sa Tolerance +#endif template class Tolerance @@ -130,7 +134,7 @@ ///Returns \c true if \c a is \e surely negative bool negative(Value a) const { return -_epsilon>a; } ///Returns \c true if \c a is \e surely non-zero - bool nonZero(Value a) const { return positive(a)||negative(a); }; + bool nonZero(Value a) const { return positive(a)||negative(a); } ///@} @@ -181,7 +185,7 @@ ///Returns \c true if \c a is \e surely negative bool negative(Value a) const { return -_epsilon>a; } ///Returns \c true if \c a is \e surely non-zero - bool nonZero(Value a) const { return positive(a)||negative(a); }; + bool nonZero(Value a) const { return positive(a)||negative(a); } ///@} @@ -232,7 +236,7 @@ ///Returns \c true if \c a is \e surely negative bool negative(Value a) const { return -_epsilon>a; } ///Returns \c true if \c a is \e surely non-zero - bool nonZero(Value a) const { return positive(a)||negative(a); }; + bool nonZero(Value a) const { return positive(a)||negative(a); } ///@} @@ -265,7 +269,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value a) { return 0>a; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0; }; + static bool nonZero(Value a) { return a!=0; } ///@} @@ -298,7 +302,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value) { return false; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0; }; + static bool nonZero(Value a) { return a!=0; } ///@} @@ -332,7 +336,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value a) { return 0>a; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@} @@ -365,7 +369,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value) { return false; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@} @@ -402,7 +406,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value a) { return 0>a; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@} @@ -437,7 +441,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value) { return false; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@}