Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-3.900.4/include/armadillo_bits/config.hpp @ 49:1ec0e2823891
Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:25:24 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
48:69251e11a913 | 49:1ec0e2823891 |
---|---|
1 // Copyright (C) 2008-2013 NICTA (www.nicta.com.au) | |
2 // Copyright (C) 2008-2013 Conrad Sanderson | |
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 | |
10 #if !defined(ARMA_USE_LAPACK) | |
11 // #define ARMA_USE_LAPACK | |
12 //// Uncomment the above line if you have LAPACK or a high-speed replacement for LAPACK, | |
13 //// such as Intel MKL, AMD ACML, or the Accelerate framework. | |
14 //// LAPACK is required for matrix decompositions (eg. SVD) and matrix inverse. | |
15 #endif | |
16 | |
17 #if !defined(ARMA_USE_BLAS) | |
18 // #define ARMA_USE_BLAS | |
19 //// Uncomment the above line if you have BLAS or a high-speed replacement for BLAS, | |
20 //// such as OpenBLAS, GotoBLAS, Intel MKL, AMD ACML, or the Accelerate framework. | |
21 //// BLAS is used for matrix multiplication. | |
22 //// Without BLAS, matrix multiplication will still work, but might be slower. | |
23 #endif | |
24 | |
25 // #define ARMA_USE_WRAPPER | |
26 //// Comment out the above line if you're getting linking errors when compiling your programs, | |
27 //// or if you prefer to directly link with LAPACK and/or BLAS. | |
28 //// You will then need to link your programs directly with -llapack -lblas instead of -larmadillo | |
29 | |
30 // #define ARMA_BLAS_CAPITALS | |
31 //// Uncomment the above line if your BLAS and LAPACK libraries have capitalised function names (eg. ACML on 64-bit Windows) | |
32 | |
33 #define ARMA_BLAS_UNDERSCORE | |
34 //// Uncomment the above line if your BLAS and LAPACK libraries have function names with a trailing underscore. | |
35 //// Conversely, comment it out if the function names don't have a trailing underscore. | |
36 | |
37 // #define ARMA_BLAS_LONG | |
38 //// Uncomment the above line if your BLAS and LAPACK libraries use "long" instead of "int" | |
39 | |
40 // #define ARMA_BLAS_LONG_LONG | |
41 //// Uncomment the above line if your BLAS and LAPACK libraries use "long long" instead of "int" | |
42 | |
43 // #define ARMA_USE_TBB_ALLOC | |
44 //// Uncomment the above line if you want to use Intel TBB scalable_malloc() and scalable_free() instead of standard malloc() and free() | |
45 | |
46 // #define ARMA_USE_MKL_ALLOC | |
47 //// Uncomment the above line if you want to use Intel MKL mkl_malloc() and mkl_free() instead of standard malloc() and free() | |
48 | |
49 // #define ARMA_USE_ATLAS | |
50 // #define ARMA_ATLAS_INCLUDE_DIR /usr/include/ | |
51 //// If you're using ATLAS and the compiler can't find cblas.h and/or clapack.h | |
52 //// uncomment the above define and specify the appropriate include directory. | |
53 //// Make sure the directory has a trailing / | |
54 | |
55 #if !defined(ARMA_64BIT_WORD) | |
56 // #define ARMA_64BIT_WORD | |
57 //// Uncomment the above line if you require matrices/vectors capable of holding more than 4 billion elements. | |
58 //// Your machine and compiler must have support for 64 bit integers (eg. via "long" or "long long") | |
59 #endif | |
60 | |
61 #if !defined(ARMA_USE_CXX11) | |
62 // #define ARMA_USE_CXX11 | |
63 //// Uncomment the above line if you have a C++ compiler that supports the C++11 standard | |
64 //// This will enable additional features, such as use of initialiser lists | |
65 #endif | |
66 | |
67 #if !defined(ARMA_USE_U64S64) | |
68 // #define ARMA_USE_U64S64 | |
69 //// Uncomment the above line if you require u64 and s64 integer types. | |
70 //// Your machine and compiler must have support for 64 bit integers (eg. via "long" or "long long"). | |
71 //// Note that ARMA_USE_U64S64 is automatically enabled when ARMA_64BIT_WORD or ARMA_USE_CXX11 are enabled | |
72 #endif | |
73 | |
74 #if !defined(ARMA_USE_HDF5) | |
75 // #define ARMA_USE_HDF5 | |
76 //// Uncomment the above line if you want the ability to save and load matrices stored in the HDF5 format; | |
77 //// the hdf5.h header file must be available on your system and you will need to link with the hdf5 library (eg. -lhdf5) | |
78 #endif | |
79 | |
80 #if !defined(ARMA_MAT_PREALLOC) | |
81 #define ARMA_MAT_PREALLOC 16 | |
82 #endif | |
83 //// This is the number of preallocated elements used by matrices and vectors; | |
84 //// it must be an integer that is at least 1. | |
85 //// If you mainly use lots of very small vectors (eg. <= 4 elements), | |
86 //// change the number to the size of your vectors. | |
87 | |
88 #if !defined(ARMA_SPMAT_CHUNKSIZE) | |
89 #define ARMA_SPMAT_CHUNKSIZE 256 | |
90 #endif | |
91 //// This is the minimum increase in the amount of memory (in terms of elements) allocated by a sparse matrix; | |
92 //// it must be an integer that is at least 1. | |
93 //// The minimum recommended size is 16. | |
94 | |
95 // #define ARMA_NO_DEBUG | |
96 //// Uncomment the above line if you want to disable all run-time checks. | |
97 //// This will result in faster code, but you first need to make sure that your code runs correctly! | |
98 //// We strongly recommend to have the run-time checks enabled during development, | |
99 //// as this greatly aids in finding mistakes in your code, and hence speeds up development. | |
100 //// We recommend that run-time checks be disabled _only_ for the shipped version of your program. | |
101 | |
102 // #define ARMA_EXTRA_DEBUG | |
103 //// Uncomment the above line if you want to see the function traces of how Armadillo evaluates expressions. | |
104 //// This is mainly useful for debugging of the library. | |
105 | |
106 | |
107 // #define ARMA_USE_BOOST | |
108 // #define ARMA_USE_BOOST_DATE | |
109 | |
110 | |
111 #if !defined(ARMA_DEFAULT_OSTREAM) | |
112 #define ARMA_DEFAULT_OSTREAM std::cout | |
113 #endif | |
114 | |
115 #define ARMA_PRINT_LOGIC_ERRORS | |
116 #define ARMA_PRINT_RUNTIME_ERRORS | |
117 //#define ARMA_PRINT_HDF5_ERRORS | |
118 | |
119 // #define ARMA_HAVE_STD_ISFINITE | |
120 // #define ARMA_HAVE_STD_ISINF | |
121 // #define ARMA_HAVE_STD_ISNAN | |
122 // #define ARMA_HAVE_STD_SNPRINTF | |
123 | |
124 // #define ARMA_HAVE_LOG1P | |
125 // #define ARMA_HAVE_GETTIMEOFDAY | |
126 | |
127 | |
128 | |
129 #if defined(ARMA_DONT_USE_LAPACK) | |
130 #undef ARMA_USE_LAPACK | |
131 #endif | |
132 | |
133 #if defined(ARMA_DONT_USE_BLAS) | |
134 #undef ARMA_USE_BLAS | |
135 #endif | |
136 | |
137 #if defined(ARMA_DONT_USE_WRAPPER) | |
138 #undef ARMA_USE_WRAPPER | |
139 #endif | |
140 | |
141 #if defined(ARMA_DONT_USE_ATLAS) | |
142 #undef ARMA_USE_ATLAS | |
143 #undef ARMA_ATLAS_INCLUDE_DIR | |
144 #endif | |
145 | |
146 #if defined(ARMA_DONT_USE_CXX11) | |
147 #undef ARMA_USE_CXX11 | |
148 #endif | |
149 | |
150 #if defined(ARMA_DONT_USE_HDF5) | |
151 #undef ARMA_USE_HDF5 | |
152 #endif | |
153 | |
154 #if defined(ARMA_DONT_USE_BOOST) | |
155 #undef ARMA_USE_BOOST | |
156 #undef ARMA_USE_BOOST_DATE | |
157 #endif | |
158 | |
159 #if defined(ARMA_DONT_PRINT_LOGIC_ERRORS) | |
160 #undef ARMA_PRINT_LOGIC_ERRORS | |
161 #endif | |
162 | |
163 #if defined(ARMA_DONT_PRINT_RUNTIME_ERRORS) | |
164 #undef ARMA_PRINT_RUNTIME_ERRORS | |
165 #endif |