COIN-OR::LEMON - Graph Library

Changeset 16:22696f89d183 in lemon


Ignore:
Timestamp:
01/03/08 01:24:09 (11 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Small fixes.
Documentation fixes.
Removed \author tags.
Removed superfluous ; characters after function codes.

Location:
lemon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.cc

    r10 r16  
    2525  /// \brief Global random number generator instance
    2626  ///
    27   /// A global mersenne twister random number generator instance
     27  /// A global Mersenne Twister random number generator instance.
    2828  Random rnd;
    2929}
  • lemon/random.h

    r12 r16  
    7474///\file
    7575///\brief Mersenne Twister random number generator
    76 ///
    77 ///\author Balazs Dezso
    7876
    7977namespace lemon {
     
    517515  /// good programming convenience to use this global generator to get
    518516  /// random numbers.
    519   ///
    520   /// \author Balazs Dezso
    521517  class Random {
    522518  private:
    523519
    524     // architecture word
     520    // Architecture word
    525521    typedef unsigned long Word;
    526522   
     
    724720    /// Gauss distribution with given mean and standard deviation
    725721
     722    /// Gauss distribution with given mean and standard deviation
    726723    /// \sa gauss()
    727     ///
    728724    double gauss(double mean,double std_dev)
    729725    {
     
    815811   
    816812    /// Uniform distribution on the full unit circle.
     813
     814    /// Uniform distribution on the full unit circle.
     815    ///
    817816    dim2::Point<double> disc()
    818817    {
  • lemon/tolerance.h

    r7 r16  
    4949  ///\sa Tolerance<long double>
    5050  ///\sa Tolerance<int>
     51#if defined __GNUC__ && !defined __STRICT_ANSI__ 
    5152  ///\sa Tolerance<long long int>
     53#endif
    5254  ///\sa Tolerance<unsigned int>
     55#if defined __GNUC__ && !defined __STRICT_ANSI__ 
    5356  ///\sa Tolerance<unsigned long long int>
     57#endif
    5458
    5559  template<class T>
     
    131135    bool negative(Value a) const { return -_epsilon>a; }
    132136    ///Returns \c true if \c a is \e surely non-zero
    133     bool nonZero(Value a) const { return positive(a)||negative(a); };
     137    bool nonZero(Value a) const { return positive(a)||negative(a); }
    134138
    135139    ///@}
     
    182186    bool negative(Value a) const { return -_epsilon>a; }
    183187    ///Returns \c true if \c a is \e surely non-zero
    184     bool nonZero(Value a) const { return positive(a)||negative(a); };
     188    bool nonZero(Value a) const { return positive(a)||negative(a); }
    185189
    186190    ///@}
     
    233237    bool negative(Value a) const { return -_epsilon>a; }
    234238    ///Returns \c true if \c a is \e surely non-zero
    235     bool nonZero(Value a) const { return positive(a)||negative(a); };
     239    bool nonZero(Value a) const { return positive(a)||negative(a); }
    236240
    237241    ///@}
     
    266270    static bool negative(Value a) { return 0>a; }
    267271    ///Returns \c true if \c a is \e surely non-zero
    268     static bool nonZero(Value a) { return a!=0; };
     272    static bool nonZero(Value a) { return a!=0; }
    269273
    270274    ///@}
     
    299303    static bool negative(Value) { return false; }
    300304    ///Returns \c true if \c a is \e surely non-zero
    301     static bool nonZero(Value a) { return a!=0; };
     305    static bool nonZero(Value a) { return a!=0; }
    302306
    303307    ///@}
     
    333337    static bool negative(Value a) { return 0>a; }
    334338    ///Returns \c true if \c a is \e surely non-zero
    335     static bool nonZero(Value a) { return a!=0;};
     339    static bool nonZero(Value a) { return a!=0;}
    336340
    337341    ///@}
     
    366370    static bool negative(Value) { return false; }
    367371    ///Returns \c true if \c a is \e surely non-zero
    368     static bool nonZero(Value a) { return a!=0;};
     372    static bool nonZero(Value a) { return a!=0;}
    369373
    370374    ///@}
     
    403407    static bool negative(Value a) { return 0>a; }
    404408    ///Returns \c true if \c a is \e surely non-zero
    405     static bool nonZero(Value a) { return a!=0;};
     409    static bool nonZero(Value a) { return a!=0;}
    406410
    407411    ///@}
     
    438442    static bool negative(Value) { return false; }
    439443    ///Returns \c true if \c a is \e surely non-zero
    440     static bool nonZero(Value a) { return a!=0;};
     444    static bool nonZero(Value a) { return a!=0;}
    441445
    442446    ///@}
Note: See TracChangeset for help on using the changeset viewer.