MPQC  3.0.0-alpha
Public Member Functions
sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > > Class Template Reference

List of all members.

Public Member Functions

template<typename Int >
 FermionBasicNCOper (Int t, Int f)
size_t to () const
 reports the state to which this operator places a particle
size_t from () const
 reports the state from which this operator removes a particle
void apply (FermionOccupationBitString< Ns > &os) const
 applies this operator to_ FermionOccupationBitString os.
bool apply_sign (FermionOccupationBitString< Ns > &os) const
 same as apply(), but returns whether application operator changes the sign of the state; the sign changes if the number of occupied states "crossed" by the operator is odd
std::pair< bool,
FermionOccupationBitString< Ns > > 
operator() (const FermionOccupationBitString< Ns > &os) const
 similar to_ apply_sign(), but keeps the argument unchanged

template<size_t Ns>
class sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > >


Member Function Documentation

template<size_t Ns>
void sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > >::apply ( FermionOccupationBitString< Ns > &  os) const [inline]

applies this operator to_ FermionOccupationBitString os.

to_==from_ is allowed.

Parameters:
osthe FermionOccupationBitString object
Returns:
FermionOccupationBitString obtained by removing a particle from_ from_ and adding a particle to_ to_.

References sc::FermionOccupationBitString< Ns >::remove(), and sc::FermionOccupationBitString< Ns >::reset().

template<size_t Ns>
bool sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > >::apply_sign ( FermionOccupationBitString< Ns > &  os) const [inline]

same as apply(), but returns whether application operator changes the sign of the state; the sign changes if the number of occupied states "crossed" by the operator is odd

Parameters:
osthe FermionOccupationBitString object
Returns:
true is the sign of the state changes

References sc::FermionOccupationBitString< Ns >::count(), sc::FermionOccupationBitString< Ns >::remove(), and sc::FermionOccupationBitString< Ns >::reset().

template<size_t Ns>
size_t sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > >::from ( ) const [inline]

reports the state from which this operator removes a particle

Returns:
the state from which this operator removes a particle
template<size_t Ns>
std::pair<bool,FermionOccupationBitString<Ns> > sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > >::operator() ( const FermionOccupationBitString< Ns > &  os) const [inline]

similar to_ apply_sign(), but keeps the argument unchanged

Parameters:
osthe FermionOccupationBitString object
Returns:
new pair[sign_change,FermionOccupationBitString]
template<size_t Ns>
size_t sc::FermionBasicNCOper< 1, FermionOccupationBitString< Ns > >::to ( ) const [inline]

reports the state to which this operator places a particle

Returns:
the state to which this operator places a particle

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

Generated at Sat Jul 7 2012 11:52:56 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.0.