ERKALE
ERKALE - DFT from Hel
 All Classes Functions Variables Friends Pages
gaunt.h
1 /*
2  * This source code is part of
3  *
4  * E R K A L E
5  * -
6  * HF/DFT from Hel
7  *
8  * Written by Susi Lehtola, 2010-2011
9  * Copyright (c) 2010-2011, Susi Lehtola
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  */
16 
17 
18 #ifndef ERKALE_GAUNT
19 #define ERKALE_GAUNT
20 
21 #include "global.h"
22 #include <armadillo>
23 
28 double gaunt_coefficient(int L, int M, int l, int m, int lp, int mp);
29 
31 class Gaunt {
33  arma::cube table;
34  public:
36  Gaunt();
38  Gaunt(int Lmax, int lmax, int lpmax);
40  ~Gaunt();
41 
43  double coeff(int L, int M, int l, int m, int lp, int mp) const;
44 };
45 
46 
47 #endif
double coeff(int L, int M, int l, int m, int lp, int mp) const
Get Gaunt coefficient.
Definition: gaunt.cpp:63
arma::cube table
Table of coefficients.
Definition: gaunt.h:33
Gaunt()
Dummy constructor.
Definition: gaunt.cpp:41
Table of Gaunt coefficients.
Definition: gaunt.h:31
~Gaunt()
Destructor.
Definition: gaunt.cpp:60