Small fixes.
authorPeter Kovacs <kpeter@inf.elte.hu>
Thu, 03 Jan 2008 01:24:09 +0100
changeset 1622696f89d183
parent 15 062f361aa520
child 20 9244aa9ec12e
Small fixes.
Documentation fixes.
Removed \author tags.
Removed superfluous ; characters after function codes.
lemon/random.cc
lemon/random.h
lemon/tolerance.h
     1.1 --- a/lemon/random.cc	Thu Jan 03 01:08:23 2008 +0100
     1.2 +++ b/lemon/random.cc	Thu Jan 03 01:24:09 2008 +0100
     1.3 @@ -24,6 +24,6 @@
     1.4  namespace lemon {
     1.5    /// \brief Global random number generator instance
     1.6    ///
     1.7 -  /// A global mersenne twister random number generator instance
     1.8 +  /// A global Mersenne Twister random number generator instance.
     1.9    Random rnd;
    1.10  }
     2.1 --- a/lemon/random.h	Thu Jan 03 01:08:23 2008 +0100
     2.2 +++ b/lemon/random.h	Thu Jan 03 01:24:09 2008 +0100
     2.3 @@ -73,8 +73,6 @@
     2.4  ///\ingroup misc
     2.5  ///\file
     2.6  ///\brief Mersenne Twister random number generator
     2.7 -///
     2.8 -///\author Balazs Dezso
     2.9  
    2.10  namespace lemon {
    2.11  
    2.12 @@ -516,12 +514,10 @@
    2.13    /// generator which name is \ref lemon::rnd "rnd". Usually it is a
    2.14    /// good programming convenience to use this global generator to get
    2.15    /// random numbers.
    2.16 -  ///
    2.17 -  /// \author Balazs Dezso
    2.18    class Random {
    2.19    private:
    2.20  
    2.21 -    // architecture word
    2.22 +    // Architecture word
    2.23      typedef unsigned long Word;
    2.24      
    2.25      _random_bits::RandomCore<Word> core;
    2.26 @@ -723,8 +719,8 @@
    2.27      }
    2.28      /// Gauss distribution with given mean and standard deviation
    2.29  
    2.30 +    /// Gauss distribution with given mean and standard deviation
    2.31      /// \sa gauss()
    2.32 -    ///
    2.33      double gauss(double mean,double std_dev)
    2.34      {
    2.35        return gauss()*std_dev+mean;
    2.36 @@ -814,6 +810,9 @@
    2.37      ///@{
    2.38      
    2.39      /// Uniform distribution on the full unit circle.
    2.40 +
    2.41 +    /// Uniform distribution on the full unit circle.
    2.42 +    ///
    2.43      dim2::Point<double> disc() 
    2.44      {
    2.45        double V1,V2;
     3.1 --- a/lemon/tolerance.h	Thu Jan 03 01:08:23 2008 +0100
     3.2 +++ b/lemon/tolerance.h	Thu Jan 03 01:24:09 2008 +0100
     3.3 @@ -48,9 +48,13 @@
     3.4    ///\sa Tolerance<double>
     3.5    ///\sa Tolerance<long double>
     3.6    ///\sa Tolerance<int>
     3.7 +#if defined __GNUC__ && !defined __STRICT_ANSI__  
     3.8    ///\sa Tolerance<long long int>
     3.9 +#endif
    3.10    ///\sa Tolerance<unsigned int>
    3.11 +#if defined __GNUC__ && !defined __STRICT_ANSI__  
    3.12    ///\sa Tolerance<unsigned long long int>
    3.13 +#endif
    3.14  
    3.15    template<class T>
    3.16    class Tolerance
    3.17 @@ -130,7 +134,7 @@
    3.18      ///Returns \c true if \c a is \e surely negative
    3.19      bool negative(Value a) const { return -_epsilon>a; }
    3.20      ///Returns \c true if \c a is \e surely non-zero
    3.21 -    bool nonZero(Value a) const { return positive(a)||negative(a); };
    3.22 +    bool nonZero(Value a) const { return positive(a)||negative(a); }
    3.23  
    3.24      ///@}
    3.25  
    3.26 @@ -181,7 +185,7 @@
    3.27      ///Returns \c true if \c a is \e surely negative
    3.28      bool negative(Value a) const { return -_epsilon>a; }
    3.29      ///Returns \c true if \c a is \e surely non-zero
    3.30 -    bool nonZero(Value a) const { return positive(a)||negative(a); };
    3.31 +    bool nonZero(Value a) const { return positive(a)||negative(a); }
    3.32  
    3.33      ///@}
    3.34  
    3.35 @@ -232,7 +236,7 @@
    3.36      ///Returns \c true if \c a is \e surely negative
    3.37      bool negative(Value a) const { return -_epsilon>a; }
    3.38      ///Returns \c true if \c a is \e surely non-zero
    3.39 -    bool nonZero(Value a) const { return positive(a)||negative(a); };
    3.40 +    bool nonZero(Value a) const { return positive(a)||negative(a); }
    3.41  
    3.42      ///@}
    3.43  
    3.44 @@ -265,7 +269,7 @@
    3.45      ///Returns \c true if \c a is \e surely negative
    3.46      static bool negative(Value a) { return 0>a; }
    3.47      ///Returns \c true if \c a is \e surely non-zero
    3.48 -    static bool nonZero(Value a) { return a!=0; };
    3.49 +    static bool nonZero(Value a) { return a!=0; }
    3.50  
    3.51      ///@}
    3.52  
    3.53 @@ -298,7 +302,7 @@
    3.54      ///Returns \c true if \c a is \e surely negative
    3.55      static bool negative(Value) { return false; }
    3.56      ///Returns \c true if \c a is \e surely non-zero
    3.57 -    static bool nonZero(Value a) { return a!=0; };
    3.58 +    static bool nonZero(Value a) { return a!=0; }
    3.59  
    3.60      ///@}
    3.61  
    3.62 @@ -332,7 +336,7 @@
    3.63      ///Returns \c true if \c a is \e surely negative
    3.64      static bool negative(Value a) { return 0>a; }
    3.65      ///Returns \c true if \c a is \e surely non-zero
    3.66 -    static bool nonZero(Value a) { return a!=0;};
    3.67 +    static bool nonZero(Value a) { return a!=0;}
    3.68  
    3.69      ///@}
    3.70  
    3.71 @@ -365,7 +369,7 @@
    3.72      ///Returns \c true if \c a is \e surely negative
    3.73      static bool negative(Value) { return false; }
    3.74      ///Returns \c true if \c a is \e surely non-zero
    3.75 -    static bool nonZero(Value a) { return a!=0;};
    3.76 +    static bool nonZero(Value a) { return a!=0;}
    3.77  
    3.78      ///@}
    3.79  
    3.80 @@ -402,7 +406,7 @@
    3.81      ///Returns \c true if \c a is \e surely negative
    3.82      static bool negative(Value a) { return 0>a; }
    3.83      ///Returns \c true if \c a is \e surely non-zero
    3.84 -    static bool nonZero(Value a) { return a!=0;};
    3.85 +    static bool nonZero(Value a) { return a!=0;}
    3.86  
    3.87      ///@}
    3.88  
    3.89 @@ -437,7 +441,7 @@
    3.90      ///Returns \c true if \c a is \e surely negative
    3.91      static bool negative(Value) { return false; }
    3.92      ///Returns \c true if \c a is \e surely non-zero
    3.93 -    static bool nonZero(Value a) { return a!=0;};
    3.94 +    static bool nonZero(Value a) { return a!=0;}
    3.95  
    3.96      ///@}
    3.97