-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathESolver.h
38 lines (29 loc) · 1010 Bytes
/
ESolver.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
#ifndef ESOLVER_H
#define ESOLVER_H
class HamSolver
{
public:
rmMatrixX_t lowestEvec;
double lowestEval;
HamSolver(const MatrixX_t& mat, const std::vector<int>& hSprimeQNumList,
const std::vector<int>& hEprimeQNumList, int targetQNum,
rmMatrixX_t& bigSeed, double lancTolerance);
private:
std::vector<int> hSprimeQNumList,
hEprimeQNumList;
int targetQNum;
double lanczos(const MatrixX_t& mat, rmMatrixX_t& seed,
double lancTolerance);
// changes input seed to ground eigenvector - make sure seed is normalized
friend class DMSolver;
};
class DMSolver
{
private:
MatrixX_t highestEvecs;
std::vector<int> highestEvecQNums;
double truncationError;
DMSolver(const HamSolver hSuperSolver, int maxEvecsToKeep);
friend class TheBlock;
};
#endif