StatMech
Loading...
Searching...
No Matches
transSector.cpp File Reference

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)
7 {
8 if(argc != 4) {
9 std::cerr << "Usage: TransSector(Integer_t k, Integer_t n, Integer_t dloc)" << std::endl;
10 std::exit(EX_USAGE);
11 }
12 Integer_t k = (Integer_t)std::atoi(argv[1]);
13 Integer_t n = (Integer_t)std::atoi(argv[2]);
14 Integer_t dloc = (Integer_t)std::atoi(argv[3]);
15 TransSector Sector(k, n, dloc);
16
17 std::cout << "TransSector(" << k << "," << n << "," << dloc << ")" << std::endl;
18 std::cout << "Representatives: (dim=" << Sector.dim() << ")" << std::endl;
19 print(Sector.representative(), Sector.dim());
20 std::cout << "Periodicity: (dim=" << Sector.dim() << ")" << std::endl;
21 print(Sector.periodicity(), Sector.dim());
22 return 0;
23}
std::vector< TransSector > Sector(n_max+1)
Translation invariant sector of a many-body Hilbert space.
Definition TransSector.hpp:19
MKL_INT Integer_t
Definition mytypes.hpp:359