TBTK
TBTK::Property::SelfEnergy Class Reference

Property container for the SelfEnergy. More...

#include <SelfEnergy.h>

Inheritance diagram for TBTK::Property::SelfEnergy:
TBTK::Property::EnergyResolvedProperty< std::complex< double > > TBTK::Property::AbstractProperty< std::complex< double > > TBTK::Property::Property TBTK::Serializable TBTK::Streamable

Public Member Functions

 SelfEnergy ()
 
 SelfEnergy (const IndexTree &indexTree, double lowerBound, double upperBound, unsigned int resolution)
 
 SelfEnergy (const IndexTree &indexTree, double lowerBound, double upperBound, unsigned int resolution, const std::complex< double > *data)
 
 SelfEnergy (const IndexTree &indexTree, int lowerMatsubaraEnergyIndex, int upperMatsubaraEnergyIndex, double fundamentalMatsubaraEnergy)
 
 SelfEnergy (const IndexTree &indexTree, int lowerMatsubaraEnergyIndex, int upperMatsubaraEnergyIndex, double fundamentalMatsubaraEnergy, const std::complex< double > *data)
 
 SelfEnergy (const std::string &serialization, Mode mode)
 
SelfEnergyoperator+= (const SelfEnergy &rhs)
 
SelfEnergy operator+ (const SelfEnergy &rhs) const
 
SelfEnergyoperator-= (const SelfEnergy &rhs)
 
SelfEnergy operator- (const SelfEnergy &rhs) const
 
SelfEnergyoperator*= (const std::complex< double > &rhs)
 
SelfEnergy operator* (const std::complex< double > &rhs) const
 
SelfEnergyoperator/= (const std::complex< double > &rhs)
 
SelfEnergy operator/ (const std::complex< double > &rhs) const
 
virtual std::string serialize (Mode mode) const
 
- Public Member Functions inherited from TBTK::Property::EnergyResolvedProperty< std::complex< double > >
 EnergyResolvedProperty ()
 
 EnergyResolvedProperty (double lowerBound, double upperBound, unsigned int resolution)
 
 EnergyResolvedProperty (double lowerBound, double upperBound, unsigned int resolution, const std::complex< double > *data)
 
 EnergyResolvedProperty (const std::vector< int > &ranges, double lowerBound, double upperBound, unsigned int resolution)
 
 EnergyResolvedProperty (const std::vector< int > &ranges, double lowerBound, double upperBound, unsigned int resolution, const std::complex< double > *data)
 
 EnergyResolvedProperty (const IndexTree &indexTree, double lowerBound, double upperBound, unsigned int resolution)
 
 EnergyResolvedProperty (const IndexTree &indexTree, double lowerBound, double upperBound, unsigned int resolution, const std::complex< double > *data)
 
 EnergyResolvedProperty (EnergyType energyType, const IndexTree &indexTree, int lowerMatsubaraEnergyIndex, int upperMatsubaraEnergtIndex, double fundamentalMatsubaraEnergy)
 
 EnergyResolvedProperty (EnergyType energyType, const IndexTree &indexTree, int lowerMatsubaraEnergyIndex, int upperMatsubaraEnergtIndex, double fundamentalMatsubaraEnergy, const std::complex< double > *data)
 
 EnergyResolvedProperty (const std::string &serialization, Serializable::Mode mode)
 
EnergyType getEnergyType () const
 
double getLowerBound () const
 
double getUpperBound () const
 
unsigned int getResolution () const
 
double getDeltaE () const
 
double getEnergy (unsigned int n) const
 
int getLowerMatsubaraEnergyIndex () const
 
int getUpperMatsubaraEnergyIndex () const
 
unsigned int getNumMatsubaraEnergies () const
 
double getFundamentalMatsubaraEnergy () const
 
double getLowerMatsubaraEnergy () const
 
double getUpperMatsubaraEnergy () const
 
std::complex< double > getMatsubaraEnergy (unsigned int n) const
 
unsigned int getNumEnergies () const
 
bool energyWindowsAreEqual (const EnergyResolvedProperty &energyResolvedProperty, double precision=1e-1) const
 
- Public Member Functions inherited from TBTK::Property::AbstractProperty< std::complex< double > >
unsigned int getBlockSize () const
 
unsigned int getSize () const
 
const std::vector< std::complex< double > > & getData () const
 
std::vector< std::complex< double > > & getDataRW ()
 
unsigned int getDimensions () const
 
std::vector< int > getRanges () const
 
int getOffset (const Index &index) const
 
const IndexDescriptorgetIndexDescriptor () const
 
bool contains (const Index &index) const
 
void reduce (const std::vector< Index > &targetPatterns, const std::vector< Index > &newPatterns)
 
void hermitianConjugate ()
 
std::vector< SparseMatrix< std::complex< double > > > toSparseMatrices (const Model &model) const
 
virtual const std::complex< double > & operator() (const Index &index, unsigned int offset=0) const
 
virtual std::complex< double > & operator() (const Index &index, unsigned int offset=0)
 
std::complex< double > & operator() (const std::initializer_list< Subindex > &index)
 
const std::complex< double > & operator() (const std::initializer_list< Subindex > &index) const
 
virtual const std::complex< double > & operator() (unsigned int offset) const
 
virtual std::complex< double > & operator() (unsigned int offset)
 
void setAllowIndexOutOfBoundsAccess (bool allowIndexOutOfBoundsAccess)
 
void setDefaultValue (const std::complex< double > &defaultValue)
 
void replaceValues (const std::complex< double > &targetValue, const std::complex< double > &replacementValue)
 
virtual std::string toString () const
 
- Public Member Functions inherited from TBTK::Serializable
template<>
std::string serialize (const bool &data, Mode mode)
 
template<>
std::string serialize (const double &data, Mode mode)
 
template<>
std::string serialize (const std::complex< double > &data, Mode mode)
 
template<>
std::string serialize (const int &data, Mode mode)
 
template<>
std::string serialize (const unsigned int &data, Mode mode)
 
template<>
std::string serialize (const SpinMatrix &data, Mode mode)
 
template<>
std::string serialize (const Statistics &data, Mode mode)
 
template<>
std::string serialize (const std::vector< std::complex< double >> &data, Mode mode)
 
template<>
int deserialize (const std::string &serialization, Mode mode)
 
template<>
unsigned int deserialize (const std::string &serialization, Mode mode)
 
template<>
double deserialize (const std::string &serialization, Mode mode)
 
template<>
std::complex< double > deserialize (const std::string &serialization, Mode mode)
 
template<>
SpinMatrix deserialize (const std::string &serialization, Mode mode)
 
template<>
Statistics deserialize (const std::string &serialization, Mode mode)
 
template<>
std::vector< std::complex< double > > deserialize (const std::string &serialization, Mode mode)
 

Friends

SelfEnergy operator* (const std::complex< double > &lhs, const SelfEnergy &rhs)
 

Additional Inherited Members

- Public Types inherited from TBTK::Property::EnergyResolvedProperty< std::complex< double > >
enum  EnergyType
 
- Public Types inherited from TBTK::Serializable
enum  Mode { Debug, Binary, XML, JSON }
 
- Static Public Member Functions inherited from TBTK::Serializable
static bool hasID (const std::string &serialization, Mode mode)
 
static std::string getID (const std::string &serialization, Mode mode)
 
static std::string extractComponent (const std::string &serialization, const std::string &containerID, const std::string &componentID, const std::string &componentName, Mode mode)
 
- Protected Member Functions inherited from TBTK::Property::EnergyResolvedProperty< std::complex< double > >
EnergyResolvedPropertyoperator+= (const EnergyResolvedProperty &rhs)
 
EnergyResolvedPropertyoperator-= (const EnergyResolvedProperty &rhs)
 
EnergyResolvedPropertyoperator*= (const std::complex< double > &rhs)
 
EnergyResolvedPropertyoperator/= (const std::complex< double > &rhs)
 
- Protected Member Functions inherited from TBTK::Property::AbstractProperty< std::complex< double > >
 AbstractProperty ()
 
 AbstractProperty (unsigned int blockSize)
 
 AbstractProperty (unsigned int blockSize, const std::complex< double > *data)
 
 AbstractProperty (const std::vector< int > &ranges, unsigned int blockSize)
 
 AbstractProperty (const std::vector< int > &ranges, unsigned int blockSize, const std::complex< double > *data)
 
 AbstractProperty (const IndexTree &indexTree, unsigned int blockSize)
 
 AbstractProperty (const IndexTree &indexTree, unsigned int blockSize, const std::complex< double > *data)
 
 AbstractProperty (const AbstractProperty &abstractProperty)
 
 AbstractProperty (AbstractProperty &&abstractProperty)
 
 AbstractProperty (const std::string &serialization, Mode mode)
 
virtual ~AbstractProperty ()
 
AbstractPropertyoperator= (const AbstractProperty &abstractProperty)
 
AbstractPropertyoperator= (AbstractProperty &&abstractProperty)
 
AbstractPropertyoperator+= (const AbstractProperty &rhs)
 
AbstractPropertyoperator-= (const AbstractProperty &rhs)
 
AbstractPropertyoperator*= (const std::complex< double > &rhs)
 
AbstractPropertyoperator/= (const std::complex< double > &rhs)
 
- Protected Member Functions inherited from TBTK::Property::Property
 Property ()
 
virtual ~Property ()
 
- Static Protected Member Functions inherited from TBTK::Serializable
static bool validate (const std::string &serialization, const std::string &id, Mode mode)
 
static std::string getContent (const std::string &serialization, Mode mode)
 
static std::vector< std::string > split (const std::string &content, Mode mode)
 
template<typename DataType >
static std::enable_if<!std::is_pointer< DataType >::value, std::string >::type serialize (const DataType &data, Mode mode)
 
template<typename DataType >
static std::enable_if< std::is_pointer< DataType >::value, std::string >::type serialize (const DataType &data, Mode mode)
 
template<typename DataType >
static DataType deserialize (const std::string &serialization, Mode mode)
 
static std::string extract (const std::string &serialization, Mode mode, std::string component)
 

Detailed Description

Property container for the SelfEnergy.

Constructor & Destructor Documentation

◆ SelfEnergy() [1/6]

TBTK::Property::SelfEnergy::SelfEnergy ( )

Constructs an uninitialized SelfEnergy.

◆ SelfEnergy() [2/6]

TBTK::Property::SelfEnergy::SelfEnergy ( const IndexTree indexTree,
double  lowerBound,
double  upperBound,
unsigned int  resolution 
)

Constructs a SelfEnergy with real energies on the Custom format. [See AbstractProperty for detailed information about the Custom format.]

Parameters
indexTreeIndexTree containing the Indices for which the SelfEnergy should be contained.
lowerBoundLower bound for the energy.
upperBoundUpper bound for the energy.
resolutionNumber of points to use for the energy.

◆ SelfEnergy() [3/6]

TBTK::Property::SelfEnergy::SelfEnergy ( const IndexTree indexTree,
double  lowerBound,
double  upperBound,
unsigned int  resolution,
const std::complex< double > *  data 
)

Constructs a SelfEnergy with real energies on the Custom format and initializes it with data. [See AbstractProperty for detailed information about the Custom format and the raw data format.]

Parameters
indexTreeIndexTree containing the Indices for which the SelfEnergy should be contained.
lowerBoundLower bound for the energy.
upperBoundUpper bound for the energy.
resolutionNumber of points to use for the energy.
dataRaw data to initialize the GreensFunction with.

◆ SelfEnergy() [4/6]

TBTK::Property::SelfEnergy::SelfEnergy ( const IndexTree indexTree,
int  lowerMatsubaraEnergyIndex,
int  upperMatsubaraEnergyIndex,
double  fundamentalMatsubaraEnergy 
)

Constructs a SelfEnergy with Matsubara energies on the Custom format. [See AbstractProperty for detailed information about the Custom format.]

Parameters
indexTreeIndexTree containing the Indices for which the SelfEnergy should be contained.
lowerBoundLower bound for the energy.
upperBoundUpper bound for the energy.
resolutionNumber of points to use for the energy.

◆ SelfEnergy() [5/6]

TBTK::Property::SelfEnergy::SelfEnergy ( const IndexTree indexTree,
int  lowerMatsubaraEnergyIndex,
int  upperMatsubaraEnergyIndex,
double  fundamentalMatsubaraEnergy,
const std::complex< double > *  data 
)

Constructs a SelfEnergy with Matsubara energies on the Custom format and initializes it with data. [See AbstractProperty for detailed information about the Custom format and the raw data format.]

Parameters
indexTreeIndexTree containing the Indices for which the SelfEnergy should be contained.
lowerBoundLower bound for the energy.
upperBoundUpper bound for the energy.
resolutionNumber of points to use for the energy.
dataRaw data to initialize the GreensFunction with.

◆ SelfEnergy() [6/6]

TBTK::Property::SelfEnergy::SelfEnergy ( const std::string &  serialization,
Mode  mode 
)

Constructor. Constructs the SelfEnergy from a serialization string.

Parameters
serializationSerialization string from which to construct the SelfEnergy.
modeMode with which the string has been serialized.

Member Function Documentation

◆ operator*()

SelfEnergy TBTK::Property::SelfEnergy::operator* ( const std::complex< double > &  rhs) const
inline

Multiplication operator.

Parameters
rhsThe right hand side of the equation.
Returns
A new SelfEnergy that is the product of the SelfEnergy and the right hand side.

◆ operator*=()

SelfEnergy & TBTK::Property::SelfEnergy::operator*= ( const std::complex< double > &  rhs)
inline

◆ operator+()

SelfEnergy TBTK::Property::SelfEnergy::operator+ ( const SelfEnergy rhs) const
inline

Addition operator.

Parameters
rhsThe right hand side of the equation.
Returns
A new SelfEnergy that is the sum of this SelfEnergy and the right hand side.

◆ operator+=()

SelfEnergy & TBTK::Property::SelfEnergy::operator+= ( const SelfEnergy rhs)
inline

◆ operator-()

SelfEnergy TBTK::Property::SelfEnergy::operator- ( const SelfEnergy rhs) const
inline

Subtraction operator.

Parameters
rhsThe right hand side of the equation.
Returns
A new SelfEnergy that is the difference between this SelfEnergy and the right hand side.

◆ operator-=()

SelfEnergy & TBTK::Property::SelfEnergy::operator-= ( const SelfEnergy rhs)
inline

◆ operator/()

SelfEnergy TBTK::Property::SelfEnergy::operator/ ( const std::complex< double > &  rhs) const
inline

Division operator.

Parameters
rhsThe right hand side of the equation.
Returns
A new SelfEnergy that is the quotient between this SelfEnergy and the right hand side.

◆ operator/=()

SelfEnergy & TBTK::Property::SelfEnergy::operator/= ( const std::complex< double > &  rhs)
inline

◆ serialize()

virtual std::string TBTK::Property::SelfEnergy::serialize ( Mode  mode) const
virtual

Friends And Related Function Documentation

◆ operator*

SelfEnergy operator* ( const std::complex< double > &  lhs,
const SelfEnergy rhs 
)
friend

Multiplication operator.

Parameters
lhsThe left hand side of the equation.
rhsThe right hand side of the equation.
Returns
A new SelfEnergy that is the product of the left and right hand side.

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