9 OptIndex::OptIndex(
const int L,
const int _Group,
const int * NORBin)
20 for (
int irrep=0; irrep<
Nirreps; irrep++)
22 NORB[irrep] = NORBin[irrep];
24 sum_check +=
NORB[irrep];
30 std::cerr <<
"OptIndex::OptIndex : Sum over all orbitals is not L." << std::endl;
34 for (
int irrep=0; irrep<
Nirreps; irrep++)
35 for (
int cnt=0; cnt<
NORB[irrep]; cnt++)
50 for (
int irrep=0; irrep<
Nirreps; irrep++)
54 sum_check +=
NORB[irrep];
60 std::cerr <<
"OptIndex::OptIndex : Sum over all orbitals is not L." << std::endl;
64 for (
int irrep=0; irrep<
Nirreps; irrep++)
65 for (
int cnt=0; cnt<
NORB[irrep]; cnt++)
87 for (
int irrep=0; irrep<
Nirreps-1; irrep++)
88 cout <<
NORB[irrep] <<
" , ";
89 cout <<
NORB[Nirreps-1] <<
" ]" << endl;
bool setGroup(const int nGroup)
Set the group.
int getNumberOfIrreps() const
Get the number of irreps for the currently activated group.
const int * get_irrep_each_orbital() const
OptIndex(const int L, const int Group, const int *NORBin)
int getGroupNumber() const
Get the group number.
std::vector< int > irrep_each_orbital
int getNORB(const int irrep) const
int getNstart(const int irrep) const
std::vector< int > NORBcumulative
int getNGroup() const
Get the group number.
std::unique_ptr< int[]> irrep2num_orb