mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
version.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_CORE_UTIL_VERSION_HPP
13 #define MLPACK_CORE_UTIL_VERSION_HPP
14 
15 #include <string>
16 
17 // The version of mlpack. If this is a git repository, this will be a version
18 // with higher number than the most recent release.
19 #define MLPACK_VERSION_MAJOR 2
20 #define MLPACK_VERSION_MINOR 2
21 #define MLPACK_VERSION_PATCH 5
22 
23 // Reverse compatibility; these macros will be removed in future versions of
24 // mlpack (3.0.0 and newer)!
25 #define __MLPACK_VERSION_MAJOR 2
26 #define __MLPACK_VERSION_MINOR 2
27 #define __MLPACK_VERSION_PATCH 5
28 
29 // The name of the version (for use by --version).
30 namespace mlpack {
31 namespace util {
32 
37 std::string GetVersion();
38 
39 } // namespace util
40 } // namespace mlpack
41 
42 #endif
std::string GetVersion()
This will return either &quot;mlpack x.y.z&quot; or &quot;mlpack master-XXXXXXX&quot; depending on whether or not this is...