max@0: // Copyright (C) 2008-2011 NICTA (www.nicta.com.au) max@0: // Copyright (C) 2008-2011 Conrad Sanderson max@0: // max@0: // This file is part of the Armadillo C++ library. max@0: // It is provided without any warranty of fitness max@0: // for any purpose. You can redistribute this file max@0: // and/or modify it under the terms of the GNU max@0: // Lesser General Public License (LGPL) as published max@0: // by the Free Software Foundation, either version 3 max@0: // of the License or (at your option) any later version. max@0: // (see http://www.opensource.org/licenses for more info) max@0: max@0: max@0: //! \addtogroup arma_config max@0: //! @{ max@0: max@0: max@0: max@0: struct arma_config max@0: { max@0: #if defined(ARMA_MAT_PREALLOC) max@0: static const uword mat_prealloc = (sword(ARMA_MAT_PREALLOC) > 0) ? uword(ARMA_MAT_PREALLOC) : 1; max@0: #else max@0: static const uword mat_prealloc = 16; max@0: #endif max@0: max@0: #if defined(ARMA_USE_ATLAS) max@0: static const bool atlas = true; max@0: #else max@0: static const bool atlas = false; max@0: #endif max@0: max@0: max@0: #if defined(ARMA_USE_LAPACK) max@0: static const bool lapack = true; max@0: #else max@0: static const bool lapack = false; max@0: #endif max@0: max@0: max@0: #if defined(ARMA_USE_BLAS) max@0: static const bool blas = true; max@0: #else max@0: static const bool blas = false; max@0: #endif max@0: max@0: max@0: #if defined(ARMA_USE_BOOST) max@0: static const bool boost = true; max@0: #else max@0: static const bool boost = false; max@0: #endif max@0: max@0: max@0: #if defined(ARMA_USE_BOOST_DATE) max@0: static const bool boost_date = true; max@0: #else max@0: static const bool boost_date = false; max@0: #endif max@0: max@0: max@0: #if !defined(ARMA_NO_DEBUG) && !defined(NDEBUG) max@0: static const bool debug = true; max@0: #else max@0: static const bool debug = false; max@0: #endif max@0: max@0: max@0: #if defined(ARMA_EXTRA_DEBUG) max@0: static const bool extra_debug = true; max@0: #else max@0: static const bool extra_debug = false; max@0: #endif max@0: max@0: max@0: #if defined(ARMA_GOOD_COMPILER) max@0: static const bool good_comp = true; max@0: #else max@0: static const bool good_comp = false; max@0: #endif max@0: max@0: max@0: #if ( \ max@0: defined(ARMA_EXTRA_MAT_PROTO) || defined(ARMA_EXTRA_MAT_MEAT) \ max@0: || defined(ARMA_EXTRA_COL_PROTO) || defined(ARMA_EXTRA_COL_MEAT) \ max@0: || defined(ARMA_EXTRA_ROW_PROTO) || defined(ARMA_EXTRA_ROW_MEAT) \ max@0: || defined(ARMA_EXTRA_CUBE_PROTO) || defined(ARMA_EXTRA_CUBE_MEAT) \ max@0: || defined(ARMA_EXTRA_FIELD_PROTO) || defined(ARMA_EXTRA_FIELD_MEAT) \ max@0: ) max@0: static const bool extra_code = true; max@0: #else max@0: static const bool extra_code = false; max@0: #endif max@0: }; max@0: max@0: max@0: max@0: //! @}