mlpack  3.4.2
 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 3
20 #define MLPACK_VERSION_MINOR 4
21 #define MLPACK_VERSION_PATCH 2
22 
23 // The name of the version (for use by --version).
24 namespace mlpack {
25 namespace util {
26 
32 
33 } // namespace util
34 } // namespace mlpack
35 
36 #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...
src mlpack core util version hpp VERSION_HPP_CONTENTS string(REGEX REPLACE".*#define MLPACK_VERSION_MAJOR ([0-9]+).*""\\1"MLPACK_VERSION_MAJOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* MLPACK_VERSION_MINOR "$
Definition: CMakeLists.txt:79