SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GNPPLib.h
Go to the documentation of this file.
1 /*-----------------------------------------------------------------------
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * Library of solvers for Generalized Nearest Point Problem (GNPP).
9  *
10  * Written (W) 1999-2008 Vojtech Franc, xfrancv@cmp.felk.cvut.cz
11  * Copyright (C) 1999-2008 Center for Machine Perception, CTU FEL Prague
12  *
13 -------------------------------------------------------------------- */
14 
15 #ifndef GNPPLIB_H__
16 #define GNPPLIB_H__
17 
18 #include <shogun/lib/config.h>
19 
20 #include <shogun/base/SGObject.h>
21 #include <shogun/io/SGIO.h>
22 #include <shogun/lib/common.h>
23 #include <shogun/kernel/Kernel.h>
24 
25 namespace shogun
26 {
30 class CGNPPLib: public CSGObject
31 {
32  public:
34  CGNPPLib();
35 
43  CGNPPLib(float64_t* vector_y, CKernel* kernel, int32_t num_data, float64_t reg_const);
44  virtual ~CGNPPLib();
45 
52  int8_t gnpp_mdm(float64_t *diag_H,
53  float64_t *vector_c,
54  float64_t *vector_y,
55  int32_t dim,
56  int32_t tmax,
57  float64_t tolabs,
58  float64_t tolrel,
59  float64_t th,
60  float64_t *alpha,
61  int32_t *ptr_t,
62  float64_t *ptr_aHa11,
63  float64_t *ptr_aHa22,
64  float64_t **ptr_History,
65  int32_t verb);
66 
73  int8_t gnpp_imdm(float64_t *diag_H,
74  float64_t *vector_c,
75  float64_t *vector_y,
76  int32_t dim,
77  int32_t tmax,
78  float64_t tolabs,
79  float64_t tolrel,
80  float64_t th,
81  float64_t *alpha,
82  int32_t *ptr_t,
83  float64_t *ptr_aHa11,
84  float64_t *ptr_aHa22,
85  float64_t **ptr_History,
86  int32_t verb);
87 
89  virtual const char* get_name() const { return "GNPPLib"; }
90 
91  protected:
98  float64_t* get_col(int64_t a, int64_t b);
99 
107  int64_t Cache_Size;
109  int32_t m_num_data;
116 
117 };
118 }
119 #endif // GNPPLIB_H__

SHOGUN Machine Learning Toolbox - Documentation