1 | // Copyright (C) 2008-2015 Conrad Sanderson |
---|
2 | // Copyright (C) 2008-2015 NICTA (www.nicta.com.au) |
---|
3 | // |
---|
4 | // This Source Code Form is subject to the terms of the Mozilla Public |
---|
5 | // License, v. 2.0. If a copy of the MPL was not distributed with this |
---|
6 | // file, You can obtain one at http://mozilla.org/MPL/2.0/. |
---|
7 | |
---|
8 | |
---|
9 | //! \addtogroup arma_config |
---|
10 | //! @{ |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | struct arma_config |
---|
15 | { |
---|
16 | #if defined(ARMA_MAT_PREALLOC) |
---|
17 | static const uword mat_prealloc = (sword(ARMA_MAT_PREALLOC) > 0) ? uword(ARMA_MAT_PREALLOC) : 1; |
---|
18 | #else |
---|
19 | static const uword mat_prealloc = 16; |
---|
20 | #endif |
---|
21 | |
---|
22 | |
---|
23 | #if defined(ARMA_SPMAT_CHUNKSIZE) |
---|
24 | static const uword spmat_chunksize = (sword(ARMA_SPMAT_CHUNKSIZE) > 0) ? uword(ARMA_SPMAT_CHUNKSIZE) : 256; |
---|
25 | #else |
---|
26 | static const uword spmat_chunksize = 256; |
---|
27 | #endif |
---|
28 | |
---|
29 | |
---|
30 | #if defined(ARMA_USE_ATLAS) |
---|
31 | static const bool atlas = true; |
---|
32 | #else |
---|
33 | static const bool atlas = false; |
---|
34 | #endif |
---|
35 | |
---|
36 | |
---|
37 | #if defined(ARMA_USE_LAPACK) |
---|
38 | static const bool lapack = true; |
---|
39 | #else |
---|
40 | static const bool lapack = false; |
---|
41 | #endif |
---|
42 | |
---|
43 | |
---|
44 | #if defined(ARMA_USE_BLAS) |
---|
45 | static const bool blas = true; |
---|
46 | #else |
---|
47 | static const bool blas = false; |
---|
48 | #endif |
---|
49 | |
---|
50 | |
---|
51 | #if defined(ARMA_USE_ARPACK) |
---|
52 | static const bool arpack = true; |
---|
53 | #else |
---|
54 | static const bool arpack = false; |
---|
55 | #endif |
---|
56 | |
---|
57 | |
---|
58 | #if defined(ARMA_USE_SUPERLU) |
---|
59 | static const bool superlu = true; |
---|
60 | #else |
---|
61 | static const bool superlu = false; |
---|
62 | #endif |
---|
63 | |
---|
64 | |
---|
65 | #if defined(ARMA_USE_HDF5) |
---|
66 | static const bool hdf5 = true; |
---|
67 | #else |
---|
68 | static const bool hdf5 = false; |
---|
69 | #endif |
---|
70 | |
---|
71 | |
---|
72 | #if defined(ARMA_NO_DEBUG) |
---|
73 | static const bool debug = false; |
---|
74 | #else |
---|
75 | static const bool debug = true; |
---|
76 | #endif |
---|
77 | |
---|
78 | |
---|
79 | #if defined(ARMA_EXTRA_DEBUG) |
---|
80 | static const bool extra_debug = true; |
---|
81 | #else |
---|
82 | static const bool extra_debug = false; |
---|
83 | #endif |
---|
84 | |
---|
85 | |
---|
86 | #if defined(ARMA_GOOD_COMPILER) |
---|
87 | static const bool good_comp = true; |
---|
88 | #else |
---|
89 | static const bool good_comp = false; |
---|
90 | #endif |
---|
91 | |
---|
92 | |
---|
93 | #if ( \ |
---|
94 | defined(ARMA_EXTRA_MAT_PROTO) || defined(ARMA_EXTRA_MAT_MEAT) \ |
---|
95 | || defined(ARMA_EXTRA_COL_PROTO) || defined(ARMA_EXTRA_COL_MEAT) \ |
---|
96 | || defined(ARMA_EXTRA_ROW_PROTO) || defined(ARMA_EXTRA_ROW_MEAT) \ |
---|
97 | || defined(ARMA_EXTRA_CUBE_PROTO) || defined(ARMA_EXTRA_CUBE_MEAT) \ |
---|
98 | || defined(ARMA_EXTRA_FIELD_PROTO) || defined(ARMA_EXTRA_FIELD_MEAT) \ |
---|
99 | || defined(ARMA_EXTRA_SPMAT_PROTO) || defined(ARMA_EXTRA_SPMAT_MEAT) \ |
---|
100 | || defined(ARMA_EXTRA_SPCOL_PROTO) || defined(ARMA_EXTRA_SPCOL_MEAT) \ |
---|
101 | || defined(ARMA_EXTRA_SPROW_PROTO) || defined(ARMA_EXTRA_SPROW_MEAT) \ |
---|
102 | ) |
---|
103 | static const bool extra_code = true; |
---|
104 | #else |
---|
105 | static const bool extra_code = false; |
---|
106 | #endif |
---|
107 | |
---|
108 | |
---|
109 | #if defined(ARMA_USE_CXX11) |
---|
110 | static const bool use_cxx11 = true; |
---|
111 | #else |
---|
112 | static const bool use_cxx11 = false; |
---|
113 | #endif |
---|
114 | |
---|
115 | |
---|
116 | #if defined(ARMA_USE_WRAPPER) |
---|
117 | static const bool use_wrapper = true; |
---|
118 | #else |
---|
119 | static const bool use_wrapper = false; |
---|
120 | #endif |
---|
121 | |
---|
122 | |
---|
123 | #if defined(_OPENMP) |
---|
124 | static const bool openmp = true; |
---|
125 | #else |
---|
126 | static const bool openmp = false; |
---|
127 | #endif |
---|
128 | }; |
---|
129 | |
---|
130 | |
---|
131 | |
---|
132 | //! @} |
---|