MPQC  3.0.0-alpha
sc::fastpairiter::MOPairIter< PSymm > Class Template Reference

SpinMOPairIter iterates over pairs of spinorbitals of spin case Spin12 This class differs from other MOPairIter classes: 1) cannot start from arbitrary IJ, only IJ=0; 2) error checking maximally reduced. More...

#include <math/mmisc/pairiter.h>

Public Member Functions

 MOPairIter (int nI, int nJ)
 
void start ()
 Start the iteration.
 
void next ()
 Move to the next pair.
 
 operator int () const
 Returns nonzero if the iterator currently holds valid data.
 
int ij () const
 current composite index
 
int i () const
 current index 1
 
int j () const
 current index 2
 
int ij (int i, int j) const
 returns an ij given i and j. More...
 
int nij () const
 

Detailed Description

template<PairSymm PSymm>
class sc::fastpairiter::MOPairIter< PSymm >

SpinMOPairIter iterates over pairs of spinorbitals of spin case Spin12 This class differs from other MOPairIter classes: 1) cannot start from arbitrary IJ, only IJ=0; 2) error checking maximally reduced.

Member Function Documentation

◆ ij()

template<PairSymm PSymm>
int sc::fastpairiter::MOPairIter< PSymm >::ij ( int  i,
int  j 
) const

returns an ij given i and j.

It is slow, don't use it if you don't have to. i is assumed >= j, if necessary (i.e. when PSymm is AntiSymm or Symm). there's no error checking.


The documentation for this class was generated from the following files:

Generated at Sun Jan 26 2020 23:24:15 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.