pomerol  2.1
Public Member Functions | Data Fields
Pomerol::TwoParticleGFPart::ResonantTerm::Hash Struct Reference

Hasher for resonant terms. More...

#include <TwoParticleGFPart.hpp>

Public Member Functions

 Hash (double EnergySpacing=1e-8)
 
std::size_t operator() (ResonantTerm const &t) const
 
void broadcast (MPI_Comm const &comm, int root)
 

Data Fields

double EnergySpacing
 Poles located within this energy spacing from each other produce the same hash value. More...
 

Detailed Description

Hasher for resonant terms.

Definition at line 208 of file TwoParticleGFPart.hpp.

Constructor & Destructor Documentation

◆ Hash()

Pomerol::TwoParticleGFPart::ResonantTerm::Hash::Hash ( double  EnergySpacing = 1e-8)
inlineexplicit

Constructor.

Parameters
[in]EnergySpacingEnergy spacing.

Definition at line 213 of file TwoParticleGFPart.hpp.

Member Function Documentation

◆ broadcast()

void Pomerol::TwoParticleGFPart::ResonantTerm::Hash::broadcast ( MPI_Comm const &  comm,
int  root 
)
inline

Broadcast this object from a root MPI rank to all other ranks in a communicator.

Parameters
[in]commThe MPI communicator for the broadcast operation.
[in]rootRank of the root MPI process.

Definition at line 226 of file TwoParticleGFPart.hpp.

◆ operator()()

std::size_t Pomerol::TwoParticleGFPart::ResonantTerm::Hash::operator() ( ResonantTerm const &  t) const
inline

Compute hash of a term.

Parameters
[in]tTerm to compute hash for.

Definition at line 216 of file TwoParticleGFPart.hpp.

Field Documentation

◆ EnergySpacing

double Pomerol::TwoParticleGFPart::ResonantTerm::Hash::EnergySpacing

Poles located within this energy spacing from each other produce the same hash value.

Definition at line 210 of file TwoParticleGFPart.hpp.


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