version.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2010 NICTA and the authors listed below
00002 // http://nicta.com.au
00003 // 
00004 // Authors:
00005 // - Conrad Sanderson (conradsand at ieee dot org)
00006 // 
00007 // This file is part of the Armadillo C++ library.
00008 // It is provided without any warranty of fitness
00009 // for any purpose. You can redistribute this file
00010 // and/or modify it under the terms of the GNU
00011 // Lesser General Public License (LGPL) as published
00012 // by the Free Software Foundation, either version 3
00013 // of the License or (at your option) any later version.
00014 // (see http://www.opensource.org/licenses for more info)
00015 
00016 
00017 //! \addtogroup version
00018 //! @{
00019 
00020 
00021 
00022 struct arma_version
00023   {
00024   static const unsigned int major = 0;
00025   static const unsigned int minor = 9;
00026   static const unsigned int patch = 8;
00027   
00028   static
00029   inline
00030   std::string
00031   as_string()
00032     {
00033     std::stringstream ss;
00034     ss << arma_version::major << '.' << arma_version::minor << '.' << arma_version::patch;
00035     
00036     return ss.str();
00037     }
00038   };
00039 
00040 
00041 
00042 struct arma_config
00043   {
00044   #if defined(ARMA_USE_ATLAS)
00045     static const bool atlas = true;
00046   #else
00047     static const bool atlas = false;
00048   #endif
00049   
00050   
00051   #if defined(ARMA_USE_LAPACK)
00052     static const bool lapack = true;
00053   #else
00054     static const bool lapack = false;
00055   #endif
00056   
00057   
00058   #if defined(ARMA_USE_BLAS)
00059     static const bool blas = true;
00060   #else
00061     static const bool blas = false;
00062   #endif
00063 
00064 
00065   #if defined(ARMA_USE_BOOST)
00066     static const bool boost = true;
00067   #else
00068     static const bool boost = false;
00069   #endif
00070   
00071 
00072   #if defined(ARMA_USE_BOOST_DATE)
00073     static const bool boost_date = true;
00074   #else
00075     static const bool boost_date = false;
00076   #endif
00077 
00078 
00079   #if !defined(ARMA_NO_DEBUG) && !defined(NDEBUG)
00080     static const bool debug = true;
00081   #else
00082     static const bool debug = false;
00083   #endif
00084   
00085   
00086   #if defined(ARMA_EXTRA_DEBUG)
00087     static const bool extra_debug = true;
00088   #else
00089     static const bool extra_debug = false;
00090   #endif
00091   
00092   
00093   #if defined(ARMA_GOOD_COMPILER)
00094     static const bool good_comp = true;
00095   #else
00096     static const bool good_comp = false;
00097   #endif
00098   };
00099 
00100 
00101 
00102 //! @}