Class : FermionOnSphereLongState
FermionOnSphereLongState :
prototype: FermionOnSphereLongState ()
description:default constructor
FermionOnSphereLongState :
prototype: FermionOnSphereLongState (const int& reducedNbrState )
description:basic constructor
input parameters:
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
FermionOnSphereLongState :
prototype: FermionOnSphereLongState (FermionOnSphereLongState& , const int& reducedNbrState )
description:copy constructor
input parameters:
state = reference on the state to copy
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
~FermionOnSphereLongState :
prototype: ~FermionOnSphereLongState ()
description:destructor
Resize :
prototype: FermionOnSphereLongState& Resize (const int& reducedNbrState )
description:resize the current state
input parameters:
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: reference on the current state
Assign :
prototype: FermionOnSphereLongState& Assign (FermionOnSphereLongState& , const int& reducedNbrState )
description:assign a state to the current one
input parameters:
state = reference on the state to assign
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: reference on the current state
TransfertState :
prototype: FermionOnSphereLongState& TransfertState (FermionOnSphereLongState& state )
description:assign a state to the current one and after undefined it (array tranfert)
input parameters:
state = reference on the state to assign
return value: reference on the current state
GetHashKey :
prototype: unsigned long GetHashKey (const int& , const unsigned long& keyMask )
description:get hash key associated to the state
input parameters:
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
keyMask = mask giving how many bits have to be kept
return value: hash key
GetHighestIndex :
prototype: int GetHighestIndex (const int& reducedNbrState )
description:get the highest state index for which the state is occupied
input parameters:
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: highest state index
EmptyState :
prototype: FermionOnSphereLongState& EmptyState (const int& reducedNbrState )
description:set all ocupations to zero
input parameters:
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: reference on the current state
SetOccupation :
prototype: void SetOccupation (const int& stateIndex )
description:set occupation of a state to one
input parameters:
stateIndex = index of the state whose occupation has to be set
UnsetOccupation :
prototype: void UnsetOccupation (const int& stateIndex )
description:set occupation of a state to zero
input parameters:
stateIndex = index of the state whose occupation has to be set
GetOccupation :
prototype: unsigned long GetOccupation (const int& stateIndex )
description:get occupation of a state
input parameters:
stateIndex = index of the state whose occupation has to be set
return value: number of fermions in the given state
IncrementOccupation :
prototype: void IncrementOccupation (const int& stateIndex )
description:increment occupation of a state
input parameters:
stateIndex = index of the state whose occupation has to be set
TestAndIncrementOccupation :
prototype: bool TestAndIncrementOccupation (const int& stateIndex )
description:test if the state is full and if it is not, increment its occupation
input parameters:
stateIndex = index of the state whose occupation has to be set
return value: false if the state is empty
DecrementOccupation :
prototype: void DecrementOccupation (const int& stateIndex )
description:decrement occupation of a state (without testing if the state es empty)
input parameters:
stateIndex = index of the state whose occupation has to be set
TestAndDecrementOccupation :
prototype: bool TestAndDecrementOccupation (const int& stateIndex )
description:test if the state is empty and if it is not, decrement its occupation
input parameters:
stateIndex = index of the state whose occupation has to be set
return value: false if the state is empty
GetPermutationSign :
prototype: void GetPermutationSign (int , int , double* , unsigned long* , double& coefficient )
description:stateIndex = index of the state whose occupation has to be set
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
signLookUpTable = pointer to an array containing the parity of the number of one for each integer ranging from 0 to 65535
signLookUpTableMaks = pointer to an array containing the parity of the mask on the bits to keep for each shift that is requested by sign evaluation
coefficient = reference on a coefficient which will be multiplied by the sign of the permutation
SwapStates :
prototype: void SwapStates (FermionOnSphereLongState& state )
description:swap two states
input parameters:
state = reference on the state to swap with the current one
Equal :
prototype: bool Equal (FermionOnSphereLongState& , int reducedNbrState )
description:test if the current state is identical to another state
input parameters:
state = reference on the state to compare with
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: true if the two states are identical
Different :
prototype: bool Different (FermionOnSphereLongState& , int reducedNbrState )
description:test if the current state is different to another state
input parameters:
state = reference on the state to compare with
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: true if the two states are different
Greater :
prototype: bool Greater (FermionOnSphereLongState& , int reducedNbrState )
description:test if the current state is greater than another state
input parameters:
state = reference on the state to compare with
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: true if the current state is greater than the other state
GreaterOrEqual :
prototype: bool GreaterOrEqual (FermionOnSphereLongState& , int reducedNbrState )
description:test if the current state is greater or equal than another state
input parameters:
state = reference on the state to compare with
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: true if the current state is greater or equal than the other state
Lesser :
prototype: bool Lesser (FermionOnSphereLongState& , const int reducedNbrState )
description:test if the current state is lesser than another state
input parameters:
state = reference on the state to compare with
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: true if the current state is greater than the other state
LesserOrEqual :
prototype: bool LesserOrEqual (FermionOnSphereLongState& , int reducedNbrState )
description:test if the current state is lesser or equal than another state
input parameters:
state = reference on the state to compare with
reducedNbrState = reduced number of state (aka the number of unsigned long per state) minus 1
return value: true if the current state is greater or equal than the other state
PrintState :
prototype: ostream& PrintState (ostream& , const int& , const int& nbrStateRemainder )
description:print a given state
input parameters:
str = reference on current output stream
reducedNbrState = reference on the reduced number of state (aka the number of unsigned long per state) minus 1
nbrStateRemainder = number of the state in the last unsigned long array describing the whole state
return value: reference on current output stream
Back to index.