Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
drwnConstants.h
Go to the documentation of this file.
1 /*****************************************************************************
2 ** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT
3 ** Distributed under the terms of the BSD license (see the LICENSE file)
4 ** Copyright (c) 2007-2015, Stephen Gould
5 ** All rights reserved.
6 **
7 ******************************************************************************
8 ** FILENAME: drwnConstants.h
9 ** AUTHOR(S): Stephen Gould <stephen.gould@anu.edu.au>
10 **
11 *****************************************************************************/
12 
19 #pragma once
20 
21 #define DRWN_VERSION "1.10 (beta)"
22 #define DRWN_TITLE "DARWIN: A Framework for Machine Learning R&D"
23 #define DRWN_COPYRIGHT "Copyright (c) 2007-2015, Stephen Gould"
24 
25 #define DRWN_USAGE_HEADER (DRWN_TITLE " (Version: " DRWN_VERSION ")\n" DRWN_COPYRIGHT "\n")
26 
27 #define DRWN_EPSILON (1.0e-6)
28 #define DRWN_DBL_MIN numeric_limits<double>::min()
29 #define DRWN_DBL_MAX numeric_limits<double>::max()
30 #define DRWN_FLT_MIN numeric_limits<float>::min()
31 #define DRWN_FLT_MAX numeric_limits<float>::max()
32 #define DRWN_INT_MIN numeric_limits<int>::min()
33 #define DRWN_INT_MAX numeric_limits<int>::max()
34 
35 #define DRWN_NOT_IMPLEMENTED_YET { \
36  std::cerr << "ERROR: function \"" << __FUNCTION__ << "\" not implemented yet" << std::endl; \
37  assert(false); \
38 }