SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
JediDiag.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Kevin Hughes
8  *
9  * Thanks to Andreas Ziehe and Cedric Gouy-Pailler
10  */
11 
12 #ifndef JEDIDIAG_H_
13 #define JEDIDIAG_H_
14 
15 #include <shogun/lib/config.h>
16 
17 
20 
21 namespace shogun
22 {
23 
34 {
35  public:
36 
39  {
40  }
41 
43  virtual ~CJediDiag()
44  {
45  }
46 
55  SGMatrix<float64_t> V0 = SGMatrix<float64_t>(NULL,0,0,false),
56  double eps=CMath::MACHINE_EPSILON,
57  int itermax=200);
58 
67  SGMatrix<float64_t> V0 = SGMatrix<float64_t>(NULL,0,0,false),
68  double eps=CMath::MACHINE_EPSILON,
69  int itermax=200)
70  {
71  m_V = diagonalize(C,V0,eps,itermax);
72  return m_V;
73  }
74 
76  virtual const char* get_name() const { return "JediDiag"; }
77 };
78 }
79 #endif //JEDIDIAG_H_
static const float64_t MACHINE_EPSILON
Definition: Math.h:2058
virtual const char * get_name() const
Definition: JediDiag.h:76
Class ApproxJointDiagonalizer defines an Approximate Joint Diagonalizer (AJD) interface.
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
Class Jedi.
Definition: JediDiag.h:33
static SGMatrix< float64_t > diagonalize(SGNDArray< float64_t > C, SGMatrix< float64_t > V0=SGMatrix< float64_t >(NULL, 0, 0, false), double eps=CMath::MACHINE_EPSILON, int itermax=200)
Definition: JediDiag.cpp:18
virtual SGMatrix< float64_t > compute(SGNDArray< float64_t > C, SGMatrix< float64_t > V0=SGMatrix< float64_t >(NULL, 0, 0, false), double eps=CMath::MACHINE_EPSILON, int itermax=200)
Definition: JediDiag.h:66
virtual ~CJediDiag()
Definition: JediDiag.h:43

SHOGUN Machine Learning Toolbox - Documentation