-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWalker.h
More file actions
63 lines (42 loc) · 830 Bytes
/
Walker.h
File metadata and controls
63 lines (42 loc) · 830 Bytes
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
62
63
/*
* File: Walker.h
* Author: jorgehog
*
* Created on 30. mars 2012, 16:50
*/
#ifndef WALKER_H
#define WALKER_H
using namespace arma;
class Walker {
protected:
int n_p;
int n2;
int dim;
bool is_murdered;
public:
Walker(int n_p, int dim, bool do_init = true);
double slater_ratio;
double value;
double lapl_sum;
mat r;
mat r_rel;
mat qforce;
mat spatial_grad;
mat jast_grad;
mat inv;
double get_r_i2(int i) const;
double abs_relative(int i, int j) const;
void make_rel_matrix();
bool is_singular() const;
bool check_bad_qforce() const;
void kill() {
is_murdered = true;
}
bool is_dead() {
return is_murdered;
}
void ressurect() {
is_murdered = false;
}
};
#endif /* WALKER_H */