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
linalg
linsolver
DirectLinearSolverComplex.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 turalPublic 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 Soumyajit De
8
*/
9
10
#ifndef DIRECT_LINEAR_SOLVER_COMPLEX_H_
11
#define DIRECT_LINEAR_SOLVER_COMPLEX_H_
12
13
#include <
shogun/lib/config.h
>
14
15
#ifdef HAVE_EIGEN3
16
#include <
shogun/mathematics/linalg/linsolver/LinearSolver.h
>
17
18
namespace
shogun
19
{
20
22
enum
EDirectSolverType
23
{
24
DS_LLT
=0,
25
DS_QR_NOPERM
=1,
26
DS_QR_COLPERM
=2,
27
DS_QR_FULLPERM
=3,
28
DS_SVD
=4
29
};
30
34
class
CDirectLinearSolverComplex
:
public
CLinearSolver
<complex128_t, float64_t>
35
{
36
public
:
38
CDirectLinearSolverComplex
();
39
45
CDirectLinearSolverComplex
(
EDirectSolverType
type);
46
48
virtual
~CDirectLinearSolverComplex
();
49
57
virtual
SGVector<complex128_t>
solve
(
58
CLinearOperator<complex128_t>
* A,
SGVector<float64_t>
b);
59
61
virtual
const
char
*
get_name
()
const
62
{
63
return
"DirectLinearSolverComplex"
;
64
}
65
66
private
:
68
const
EDirectSolverType
m_type;
69
70
};
71
72
}
73
74
#endif // HAVE_EIGEN3
75
#endif // DIRECT_LINEAR_SOLVER_COMPLEX_H_
SHOGUN
Machine Learning Toolbox - Documentation