Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

global.C

Go to the documentation of this file.
00001 /*!
00002  *  \file global.C
00003  *  \brief Contains values of epsilon constants from global.H and the
00004  *  implementation of the setEpsAbsMath function.
00005  *  \ingroup group_MLIB
00006  *
00007  */
00008  
00009 #include <cassert>
00010 
00011 using namespace std;
00012 
00013 #include "global.H"
00014 
00015 const double mlib::gEpsZeroMath  = 1e-12;    //!< Really a very small value
00016 
00017 double       mlib::gEpsAbsMath     = 1e-8;   //!< Absolute epsilon
00018 double       mlib::gEpsAbsSqrdMath = 1e-16;  //!< Absolute epsilon squared
00019 
00020 const double mlib::gEpsNorMath     = 1e-10;  //!< Normalized epsilon
00021 const double mlib::gEpsNorSqrdMath = 1e-20;  //!< Normalized epsilon squared
00022 
00023 void 
00024 mlib::setEpsAbsMath(double eps)
00025 {
00026     assert(eps > 0);
00027 
00028     gEpsAbsMath     = eps;
00029     gEpsAbsSqrdMath = eps * eps;
00030 }
00031 
00032 void 
00033 mlib::fn_gdb_will_recognize_so_i_can_set_a_fuggin_breakpoint()
00034 {
00035    // TODO: Learn how to set a breakpoint in a templated function.
00036    //       For now using this...
00037 
00038    int n = 3;
00039    if (n < 2)
00040       n++;
00041 }
00042 
00043 // end of file global.C

Generated on Mon Sep 18 11:39:30 2006 for jot by  doxygen 1.4.4