Program Listing for File iter_pow.h

Return to documentation for file (gbasis/iter_pow.h)

// HORTON: Helpful Open-source Research TOol for N-fermion systems.
// Copyright (C) 2011-2017 The HORTON Development Team
//
// This file is part of HORTON.
//
// HORTON is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 3
// of the License, or (at your option) any later version.
//
// HORTON is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>
//
//--

#ifndef GBASIS_ITER_POW_H
#define GBASIS_ITER_POW_H

int iter_pow1_inc(long *n);

class IterPow1 {
 private:
  long shell_type0;
 public:
  void reset(long shell_type0);
  int inc();
  long n0[3];
  long ibasis0;
};

class IterPow2 {
 private:
  long shell_type0, shell_type1;
 public:
  void reset(long shell_type0, long shell_type1);
  int inc();
  long n0[3];
  long n1[3];
  long offset, ibasis0, ibasis1;
};

#endif