Bridge++
Ver. 2.0.2
aeigensolver.cpp
Go to the documentation of this file.
1
10
#include "
lib/Eigen/aeigensolver.h
"
11
12
#include "
lib/Fopr/afopr.h
"
13
#include "
lib_alt_QXS/Field/afield.h
"
14
15
typedef
AField<double, QXS>
AFIELD_d
;
16
typedef
AFopr<AField<double, QXS>
>
AFOPR_d
;
17
18
typedef
AField<float, QXS>
AFIELD_f
;
19
typedef
AFopr<AField<float, QXS>
>
AFOPR_f
;
20
21
#ifdef USE_FACTORY
22
23
#ifdef USE_FACTORY_AUTOREGISTER
24
#else
25
26
#include "
lib/Eigen/aeigensolver_IRLanczos.h
"
27
#include "
lib/Eigen/aeigensolver_IRArnoldi.h
"
28
29
template
<>
30
bool
AEigensolver<AFIELD_d, AFOPR_d>::init_factory
()
31
{
32
typedef
AFIELD_d
AFIELD
;
33
typedef
AFOPR_d
AFOPR
;
34
bool
result =
true
;
35
result &=
AEigensolver_IRLanczos<AFIELD, AFOPR>::register_factory
();
36
result &=
AEigensolver_IRArnoldi<AFIELD, AFOPR>::register_factory
();
37
return
result;
38
}
39
40
41
template
<>
42
bool
AEigensolver<AFIELD_f, AFOPR_f>::init_factory
()
43
{
44
typedef
AFIELD_f
AFIELD
;
45
typedef
AFOPR_f
AFOPR
;
46
bool
result =
true
;
47
result &=
AEigensolver_IRLanczos<AFIELD, AFOPR>::register_factory
();
48
result &=
AEigensolver_IRArnoldi<AFIELD, AFOPR>::register_factory
();
49
return
result;
50
}
51
52
53
#endif
/* USE_FACTORY_AUTOREGISTER */
54
55
#endif
/* USE_FACTORY */
56
57
58
// explicit instanciation.
59
template
class
AEigensolver<AFIELD_d, AFOPR_d>
;
60
template
class
AEigensolver<AFIELD_f, AFOPR_f>
;
61
62
//============================================================END=====
afield.h
AFopr
Definition:
afopr.h:48
AFIELD_d
AField< double, QXS > AFIELD_d
Definition:
aeigensolver.cpp:15
aeigensolver_IRArnoldi.h
AField< double, QXS >
AFIELD
Field AFIELD
Definition:
eigensolver.cpp:18
AFOPR_d
AFopr< AField< double, QXS > > AFOPR_d
Definition:
aeigensolver.cpp:16
aeigensolver_IRLanczos.h
AFIELD_f
AField< float, QXS > AFIELD_f
Definition:
aeigensolver.cpp:18
AFOPR_f
AFopr< AField< float, QXS > > AFOPR_f
Definition:
aeigensolver.cpp:19
AEigensolver_IRLanczos
Eigenvalue solver with Implicitly Restarted Lanczos algorithm.
Definition:
aeigensolver_IRLanczos.h:44
afopr.h
AFOPR
AFopr< Field > AFOPR
Definition:
eigensolver.cpp:19
AEigensolver_IRArnoldi
Eigenvalue solver with Implicitly Restarted Arnoldi algorithm.
Definition:
aeigensolver_IRArnoldi.h:36
AEigensolver
Eigensolver class for abstract base class of eigen solvers.
Definition:
aeigensolver.h:42
aeigensolver.h
src
lib_alt_QXS
Eigen
aeigensolver.cpp
Generated on Sat Feb 10 2024 14:20:00 for Bridge++ by
1.8.17