/
DirectEigenSolver.h
61 lines (50 loc) · 1.45 KB
/
DirectEigenSolver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2013 Soumyajit De
*/
#ifndef DIRECT_EIGEN_SOLVER_H_
#define DIRECT_EIGEN_SOLVER_H_
#include <shogun/lib/config.h>
#ifdef HAVE_EIGEN3
#include <shogun/mathematics/linalg/eigsolver/EigenSolver.h>
namespace shogun
{
template<class T> class CDenseMatrixOperator;
/** @brief Class that computes eigenvalues of a real valued, self-adjoint
* dense matrix linear operator using Eigen3
*/
class CDirectEigenSolver : public CEigenSolver
{
public:
/** default constructor */
CDirectEigenSolver();
/** destructor */
virtual ~CDirectEigenSolver();
/**
* compute method for computing eigenvalues of a real valued dense matrix
* linear operator
*
* @param linear_operator real valued self-adjoint linear operator
* whose eigenvalues have to be found
*/
virtual void compute(CLinearOperator<float64_t>* linear_operator);
/**
* compute method for computing eigenvalues of a real valued dense matrix
*
* @param m real valued self-adjoint matrix whose eigenvalues have to be
* found
*/
void compute(SGMatrix<float64_t> m);
/** @return object name */
virtual const char* get_name() const
{
return "DirectEigenSolver";
}
};
}
#endif // HAVE_EIGEN3
#endif // DIRECT_EIGEN_SOLVER_H_