-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmatvec_i.h
More file actions
62 lines (51 loc) · 1.76 KB
/
matvec_i.h
File metadata and controls
62 lines (51 loc) · 1.76 KB
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
#ifndef LIBRESPONSE_MATVEC_H_
#define LIBRESPONSE_MATVEC_H_
/*!
* @file
*
* J/K integral generation: base class.
*/
#include <armadillo>
/*!
* J/K integral generation: Base class (should only use derived classes).
*/
class MatVec_i {
public:
MatVec_i(); //!< default constructor
virtual ~MatVec_i(); //!< default destructor
/*!
* Compute J and K from P, where P is not necessarily symmetric.
*
* All cubes will either have 1 slice (for restricted
* wavefunctions) or 2 slices (for unrestricted wavefunctions).
*
* @todo In the future, as long as the number of slices is
* identical/consistent between J/K/P, this should handle an
* arbitrary number.
*
* @param[out] &J generalized Coulomb matrices
* @param[out] &K generalized exchange matrices
* @param[in] &P generalized densities
*/
virtual void compute(arma::cube &J, arma::cube &K, arma::cube &P);
/*!
* Compute J and K from C_left/L and C_right/R, where the
* densities P formed from L/R are not necessarily symmetric.
*
* All cubes will either have 1 slice (for restricted
* wavefunctions) or 2 slices (for unrestricted wavefunctions).
*
* @todo In the future, as long as the number of slices is
* identical/consistent between J/K/L/R, this should handle an
* arbitrary number.
*
* @param[out] &J generalized Coulomb matrices
* @param[out] &K generalized exchange matrices
* @param[in] &L generalized left MO-type coefficients
* @param[in] &R generalized right MO-type coefficients
*/
virtual void compute(arma::cube &J, arma::cube &K, const std::vector<arma::mat> &L, const std::vector<arma::mat> &R);
protected:
private:
};
#endif // LIBRESPONSE_MATVEC_H_