SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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__
float64_t m_reg_const
Definition: GNPPLib.h:111
int32_t first_kernel_inx
Definition: GNPPLib.h:105
CKernel * m_kernel
Definition: GNPPLib.h:115
float64_t * m_vector_y
Definition: GNPPLib.h:113
class GNPPLib, a Library of solvers for Generalized Nearest Point Problem (GNPP). ...
Definition: GNPPLib.h:30
float64_t ** kernel_columns
Definition: GNPPLib.h:101
int8_t gnpp_mdm(float64_t *diag_H, float64_t *vector_c, float64_t *vector_y, int32_t dim, int32_t tmax, float64_t tolabs, float64_t tolrel, float64_t th, float64_t *alpha, int32_t *ptr_t, float64_t *ptr_aHa11, float64_t *ptr_aHa22, float64_t **ptr_History, int32_t verb)
Definition: GNPPLib.cpp:89
float64_t * cache_index
Definition: GNPPLib.h:103
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
double float64_t
Definition: common.h:50
int32_t m_num_data
Definition: GNPPLib.h:109
float64_t * get_col(int64_t a, int64_t b)
Definition: GNPPLib.cpp:684
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
int8_t gnpp_imdm(float64_t *diag_H, float64_t *vector_c, float64_t *vector_y, int32_t dim, int32_t tmax, float64_t tolabs, float64_t tolrel, float64_t th, float64_t *alpha, int32_t *ptr_t, float64_t *ptr_aHa11, float64_t *ptr_aHa22, float64_t **ptr_History, int32_t verb)
Definition: GNPPLib.cpp:354
The Kernel base class.
Definition: Kernel.h:159
virtual ~CGNPPLib()
Definition: GNPPLib.cpp:74
virtual const char * get_name() const
Definition: GNPPLib.h:89
int64_t Cache_Size
Definition: GNPPLib.h:107

SHOGUN Machine Learning Toolbox - Documentation