SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lbfgscommon.h
Go to the documentation of this file.
1 #ifndef __LBFGSCOMMON_H__
2 #define __LBFGSCOMMON_H__
3 
4 #include <shogun/lib/config.h>
5 #include <shogun/lib/common.h>
6 #include <shogun/io/SGIO.h>
7 
8 
9 namespace shogun
10 {
11 
14 {
19 };
20 
21 #ifndef DOXYGEN_SHOULD_SKIP_THIS
22 struct LBFGSLineSearchHelper
23 {
24  static int8_t get_lbfgs_linear_search_id(ELBFGSLineSearch method)
25  {
26  return (int8_t) method;
27  }
28 
29  static ELBFGSLineSearch get_lbfgs_linear_search(int8_t method_id)
30  {
31  REQUIRE(method_id>=0 && method_id<4, "Unsupported method id (%d)\n", method_id);
32  return (ELBFGSLineSearch) method_id;
33  }
34 };
35 #endif
36 
37 } // namespace shogun
38 
39 #endif/*__LBFGSCOMMON_H__*/
#define REQUIRE(x,...)
Definition: SGIO.h:206
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
ELBFGSLineSearch
Definition: lbfgscommon.h:13

SHOGUN Machine Learning Toolbox - Documentation