COIN-OR::LEMON - Graph Library

Changeset 2568:046c055217f6 in lemon-0.x


Ignore:
Timestamp:
02/08/08 11:18:55 (12 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3449
Message:

Math constants + configure bugfix backported
from hg a315a588a20d and 761622e5ed4c

Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r2412 r2568  
    1414AC_CONFIG_AUX_DIR([build-aux])
    1515AC_CONFIG_MACRO_DIR([m4])
    16 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
     16AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
    1717AC_CONFIG_SRCDIR([lemon/list_graph.h])
    1818AC_CONFIG_HEADERS([config.h lemon/config.h])
  • demo/descriptor_map_demo.cc

    r2553 r2568  
    6262
    6363  Value operator[](const Key& key) const {
    64     double angle = descriptor[key] * 2 * M_PI
     64    double angle = descriptor[key] * 2 * PI
    6565      / double(descriptor.inverse().size());
    6666    double x = std::cos(angle) * radius + center.x;
  • demo/eps_demo.cc

    r2553 r2568  
    4848  ed.moveTo(0,1);
    4949 
    50   for(d=0;d<M_PI*2*5;d+=.1)
     50  for(d=0;d<PI*2*5;d+=.1)
    5151    {
    5252      ed.lineTo(sin(d*3),cos(d*5));
  • doc/maps.dox

    r2553 r2568  
    107107  typedef double Value;
    108108  typedef Graph::Edge Key;
    109   double operator[](Key e) const { return M_PI;}
     109  double operator[](Key e) const { return PI;}
    110110};
    111111\endcode
     
    116116struct MyMap : public MapBase<Graph::Edge,double>
    117117{
    118   Value operator[](Key e) const { return M_PI;}
     118  Value operator[](Key e) const { return PI;}
    119119};
    120120\endcode
  • doc/maps2.dox

    r2553 r2568  
    4343  typedef double Value;
    4444  typedef Graph::Edge Key;
    45   double operator[](const Key &e) const { return M_PI;}
     45  double operator[](const Key &e) const { return PI;}
    4646};
    4747\endcode
     
    5252struct MyMap : public MapBase<Graph::Edge,double>
    5353{
    54   Value operator[](const Key& e) const { return M_PI;}
     54  Value operator[](const Key& e) const { return PI;}
    5555};
    5656\endcode
  • lemon/Makefile.am

    r2528 r2568  
    9393        lemon/map_iterator.h \
    9494        lemon/maps.h \
     95        lemon/math.h \
    9596        lemon/matrix_maps.h \
    9697        lemon/max_matching.h \
  • lemon/random.h

    r2553 r2568  
    767767      double xi,nu;
    768768      const double delta = k-std::floor(k);
    769       const double v0=M_E/(M_E-delta);
     769      const double v0=E/(E-delta);
    770770      do {
    771771        double V0=1.0-real<double>();
Note: See TracChangeset for help on using the changeset viewer.