forked from sanshar/Block
-
Notifications
You must be signed in to change notification settings - Fork 0
/
davidson.h
45 lines (37 loc) · 1.28 KB
/
davidson.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
/*
Developed by Sandeep Sharma and Garnet K.-L. Chan, 2012
Copyright (c) 2012, Garnet K.-L. Chan
This program is integrated in Molpro with the permission of
Sandeep Sharma and Garnet K.-L. Chan
*/
#ifndef SPIN_DAVIDSON_HEADER
#define SPIN_DAVIDSON_HEADER
namespace SpinAdapted{
class StackWavefunction;
class StackSpinBlock;
struct Davidson_functor
{
virtual void operator()(StackWavefunction& c, StackWavefunction& v) = 0;
virtual const StackSpinBlock& get_block() = 0;
virtual ~Davidson_functor() {};
};
class multiply_h : public Davidson_functor
{
private:
const StackSpinBlock& block;
public:
multiply_h(const StackSpinBlock& b, const bool &onedot_);
void operator()(StackWavefunction& c, StackWavefunction& v);
const StackSpinBlock& get_block() {return block;}
};
class multiply_h_2Index : public Davidson_functor
{
private:
const StackSpinBlock& block;
public:
multiply_h_2Index(const StackSpinBlock& b, const bool &onedot_);
void operator()(StackWavefunction& c, StackWavefunction& v);
const StackSpinBlock& get_block() {return block;}
};
}
#endif