lemon/base.cc
author alpar
Mon, 30 Jan 2006 09:37:41 +0000
changeset 1930 92b70deed0c5
parent 1875 98698b69a902
child 1956 a055123339d5
permissions -rw-r--r--
Solve bug #23: Floating versus Integer Coordinates

- BoundingBox values rounds to integer
- The generated .eps rescales if the bounding box were too small otherwise.
     1 /* -*- C++ -*-
     2  * lemon/base.cc - Part of LEMON, a generic C++ optimization library
     3  *
     4  * Copyright (C) 2006 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     5  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     6  *
     7  * Permission to use, modify and distribute this software is granted
     8  * provided that this copyright notice appears in all copies. For
     9  * precise terms see the accompanying LICENSE file.
    10  *
    11  * This software is provided "AS IS" with no warranty of any kind,
    12  * express or implied, and with no claim as to its suitability for any
    13  * purpose.
    14  *
    15  */
    16 
    17 ///\file
    18 ///\brief Some basic non inline function and static global data.
    19 
    20 #include<lemon/tolerance.h>
    21 #include<lemon/invalid.h>
    22 namespace lemon {
    23 
    24   float Tolerance<float>::def_epsilon = 1e-4;
    25   double Tolerance<double>::def_epsilon = 1e-10;
    26   long double Tolerance<long double>::def_epsilon = 1e-14;
    27 
    28 #ifndef LEMON_ONLY_TEMPLATES
    29   const Invalid INVALID = Invalid();
    30 #endif
    31 
    32 } //namespace lemon