HubbardGPU
Hubbard diagonalisation on the GPU (and CPU)
 All Classes Files Functions Variables Typedefs Friends Macros
ham.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 Ward Poelmans
2 
3 This file is part of Hubbard-GPU.
4 
5 Hubbard-GPU is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 Hubbard-GPU is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with Hubbard-GPU. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef HAM_H
20 #define HAM_H
21 
22 #include <vector>
23 #include <string>
24 #include "bare-ham.h"
25 
32 {
33  public:
34  Hamiltonian(int L, int Nu, int Nd, double J, double U);
35  virtual ~Hamiltonian();
36 
37  void BuildFullHam();
38 
39  virtual void mvprod(double *x, double *y, double alpha) const;
40 
41  protected:
42  virtual int hopping(myint a, myint b, int jumpsign) const;
43 };
44 
45 #endif /* HAM_H */
46 
47 /* vim: set ts=8 sw=4 tw=0 expandtab :*/