mlpack
3.4.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
mlpack
core
util
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
31
std::string
GetVersion
();
32
33
}
// namespace util
34
}
// namespace mlpack
35
36
#endif
mlpack::util::GetVersion
std::string GetVersion()
This will return either "mlpack x.y.z" or "mlpack master-XXXXXXX" depending on whether or not this is...
string
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
Generated by
1.8.5