SHOGUN
v3.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
mathematics
ajd
ApproxJointDiagonalizer.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 APPROXJOINTDIAGONALIZER_H_
13
#define APPROXJOINTDIAGONALIZER_H_
14
15
#include <
shogun/lib/config.h
>
16
17
#ifdef HAVE_EIGEN3
18
19
#include <
shogun/lib/common.h
>
20
#include <
shogun/lib/SGMatrix.h
>
21
#include <
shogun/lib/SGNDArray.h
>
22
#include <
shogun/base/SGObject.h
>
23
24
#include <
shogun/mathematics/Math.h
>
25
26
namespace
shogun
27
{
28
36
class
CApproxJointDiagonalizer
:
public
CSGObject
37
{
38
public
:
39
41
CApproxJointDiagonalizer
() :
CSGObject
()
42
{
43
};
44
46
virtual
~CApproxJointDiagonalizer
()
47
{
48
}
49
57
virtual
SGMatrix<float64_t>
compute
(
SGNDArray<float64_t>
C,
58
SGMatrix<float64_t>
V0 =
SGMatrix<float64_t>
(NULL,0,0,
false
),
59
double
eps=
CMath::MACHINE_EPSILON
,
60
int
itermax=200) = 0;
61
63
SGMatrix<float64_t>
get_V
()
64
{
65
return
m_V
;
66
}
67
68
protected
:
69
71
SGMatrix<float64_t>
m_V
;
72
73
};
74
}
75
#endif //HAVE_EIGEN3
76
#endif //APPROXJOINTDIAGONALIZER_H_
SHOGUN
Machine Learning Toolbox - Documentation