MLPACK  1.0.11
core.hpp
Go to the documentation of this file.
1 /***
2  * @file core.hpp
3  *
4  * Include all of the base components required to write MLPACK methods, and the
5  * main MLPACK Doxygen documentation.
6  *
7  * This file is part of MLPACK 1.0.11.
8  *
9  * MLPACK is free software: you can redistribute it and/or modify it under the
10  * terms of the GNU Lesser General Public License as published by the Free
11  * Software Foundation, either version 3 of the License, or (at your option) any
12  * later version.
13  *
14  * MLPACK is distributed in the hope that it will be useful, but WITHOUT ANY
15  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16  * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
17  * details (LICENSE.txt).
18  *
19  * You should have received a copy of the GNU General Public License along with
20  * MLPACK. If not, see <http://www.gnu.org/licenses/>.
21  */
22 #ifndef __MLPACK_CORE_HPP
23 #define __MLPACK_CORE_HPP
24 
164 // First, include all of the prerequisites.
165 #include <mlpack/prereqs.hpp>
166 
167 // Now the core mlpack classes.
169 #include <mlpack/core/util/log.hpp>
170 #include <mlpack/core/util/cli.hpp>
171 #include <mlpack/core/data/load.hpp>
172 #include <mlpack/core/data/save.hpp>
182 
183 // Include kernel traits.
195 
196 // Use Armadillo's C++ version detection.
197 #ifdef ARMA_USE_CXX11
198  #define MLPACK_USE_CX11
199 #endif
200 
201 // Clean up unfortunate Windows preprocessor definitions, even if this file was
202 // already included. Use std::min and std::max!
203 #ifdef _WIN32
204  #ifdef min
205  #undef min
206  #endif
207 
208  #ifdef max
209  #undef max
210  #endif
211 #endif
212 
213 #endif
The core includes that mlpack expects; standard C++ includes and Armadillo.
Miscellaneous math clamping routines.
Miscellaneous math random-related routines.
Definition of the Range class, which represents a simple range with a lower and upper bound...