comparison armadillo-2.4.4/include/armadillo_bits/arma_config.hpp @ 0:8b6102e2a9b0

Armadillo Library
author maxzanoni76 <max.zanoni@eecs.qmul.ac.uk>
date Wed, 11 Apr 2012 09:27:06 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8b6102e2a9b0
1 // Copyright (C) 2008-2011 NICTA (www.nicta.com.au)
2 // Copyright (C) 2008-2011 Conrad Sanderson
3 //
4 // This file is part of the Armadillo C++ library.
5 // It is provided without any warranty of fitness
6 // for any purpose. You can redistribute this file
7 // and/or modify it under the terms of the GNU
8 // Lesser General Public License (LGPL) as published
9 // by the Free Software Foundation, either version 3
10 // of the License or (at your option) any later version.
11 // (see http://www.opensource.org/licenses for more info)
12
13
14 //! \addtogroup arma_config
15 //! @{
16
17
18
19 struct arma_config
20 {
21 #if defined(ARMA_MAT_PREALLOC)
22 static const uword mat_prealloc = (sword(ARMA_MAT_PREALLOC) > 0) ? uword(ARMA_MAT_PREALLOC) : 1;
23 #else
24 static const uword mat_prealloc = 16;
25 #endif
26
27 #if defined(ARMA_USE_ATLAS)
28 static const bool atlas = true;
29 #else
30 static const bool atlas = false;
31 #endif
32
33
34 #if defined(ARMA_USE_LAPACK)
35 static const bool lapack = true;
36 #else
37 static const bool lapack = false;
38 #endif
39
40
41 #if defined(ARMA_USE_BLAS)
42 static const bool blas = true;
43 #else
44 static const bool blas = false;
45 #endif
46
47
48 #if defined(ARMA_USE_BOOST)
49 static const bool boost = true;
50 #else
51 static const bool boost = false;
52 #endif
53
54
55 #if defined(ARMA_USE_BOOST_DATE)
56 static const bool boost_date = true;
57 #else
58 static const bool boost_date = false;
59 #endif
60
61
62 #if !defined(ARMA_NO_DEBUG) && !defined(NDEBUG)
63 static const bool debug = true;
64 #else
65 static const bool debug = false;
66 #endif
67
68
69 #if defined(ARMA_EXTRA_DEBUG)
70 static const bool extra_debug = true;
71 #else
72 static const bool extra_debug = false;
73 #endif
74
75
76 #if defined(ARMA_GOOD_COMPILER)
77 static const bool good_comp = true;
78 #else
79 static const bool good_comp = false;
80 #endif
81
82
83 #if ( \
84 defined(ARMA_EXTRA_MAT_PROTO) || defined(ARMA_EXTRA_MAT_MEAT) \
85 || defined(ARMA_EXTRA_COL_PROTO) || defined(ARMA_EXTRA_COL_MEAT) \
86 || defined(ARMA_EXTRA_ROW_PROTO) || defined(ARMA_EXTRA_ROW_MEAT) \
87 || defined(ARMA_EXTRA_CUBE_PROTO) || defined(ARMA_EXTRA_CUBE_MEAT) \
88 || defined(ARMA_EXTRA_FIELD_PROTO) || defined(ARMA_EXTRA_FIELD_MEAT) \
89 )
90 static const bool extra_code = true;
91 #else
92 static const bool extra_code = false;
93 #endif
94 };
95
96
97
98 //! @}