MADNESS 0.10.1
madness::Fock< T, NDIM > Class Template Reference

Computes matrix representation of the Fock operator. More...

#include <SCFOperators.h>

Inheritance diagram for madness::Fock< T, NDIM >:
Collaboration diagram for madness::Fock< T, NDIM >:

Public Member Functions

 Fock (World &world)
 Fock (World &world, const Nemo *nemo)
 Fock (World &world, const Nemo *nemo)
 Fock (World &world, const NemoBase *nemo)
 Fock (World &world, const NemoBase *nemobase)
 Fock (World &world, const OEP *nemo)
 Fock (World &world, const OEP *oep)
void add_operator (std::string name, std::shared_ptr< SCFOperatorBase< T, NDIM > > new_op)
 add an operator with default prefactor 1.0
void add_operator (std::string name, std::tuple< double, std::shared_ptr< SCFOperatorBase< T, NDIM > > > new_op)
 add an operator with custom prefactor (e.g. -1.0 for the exchange, supposedly)
std::string info () const
 pretty print what this is actually computing
T operator() (const Function< T, NDIM > &bra, const Function< T, NDIM > &ket) const
 compute the matrix element <bra | op | ket>
Function< T, NDIM > operator() (const Function< T, NDIM > &ket) const
Tensor< T > operator() (const std::vector< Function< T, NDIM > > &vbra, const std::vector< Function< T, NDIM > > &vket) const
 compute the Fock matrix by summing up all contributions
Tensor< T > operator() (const std::vector< Function< T, NDIM > > &vbra, const std::vector< Function< T, NDIM > > &vket, const bool symmetric) const
 compute the Fock matrix by summing up all contributions
std::vector< Function< T, NDIM > > operator() (const std::vector< Function< T, NDIM > > &vket) const
int remove_operator (std::string name)
 remove operator, returns 0 if no operator was found
Public Member Functions inherited from madness::SCFOperatorBase< T, NDIM >
 SCFOperatorBase ()=default
 SCFOperatorBase (std::shared_ptr< MacroTaskQ > taskq)
virtual ~SCFOperatorBase ()
virtual tensorT operator() (const vecfuncT &vbra, const vecfuncT &vket) const =0
 compute the matrix <vbra | op | vket>
virtual vecfuncT operator() (const vecfuncT &vket) const =0
 apply this operator on the argument vector of functions

Private Types

typedef std::tuple< double, std::shared_ptr< SCFOperatorBase< T, NDIM > > > valueT
 type defining Fock operator contribution including prefactor

Private Attributes

std::map< std::string, valueT > operators
 all the Fock operator contribution
World & world
 the world

Additional Inherited Members

Public Types inherited from madness::SCFOperatorBase< T, NDIM >
typedef Function< T, NDIM > functionT
typedef Tensor< T > tensorT
typedef std::vector< functionT > vecfuncT
Public Attributes inherited from madness::SCFOperatorBase< T, NDIM >
nlohmann::json statistics
std::shared_ptr< MacroTaskQ > taskq =0

Detailed Description

template<typename T, std::size_t NDIM>
class madness::Fock< T, NDIM >

Computes matrix representation of the Fock operator.

Member Typedef Documentation

◆ valueT

template<typename T, std::size_t NDIM>
typedef std::tuple<double,std::shared_ptr<SCFOperatorBase<T,NDIM> > > madness::Fock< T, NDIM >::valueT
private

type defining Fock operator contribution including prefactor

Constructor & Destructor Documentation

◆ Fock() [1/7]

template<typename T, std::size_t NDIM>
madness::Fock< T, NDIM >::Fock ( World & world)
inline

References world.

◆ Fock() [2/7]

template<typename T, std::size_t NDIM>
madness::Fock< T, NDIM >::Fock ( World & world,
const Nemo * nemo )

References world.

◆ Fock() [3/7]

template<typename T, std::size_t NDIM>
madness::Fock< T, NDIM >::Fock ( World & world,
const OEP * nemo )

References world.

◆ Fock() [4/7]

template<typename T, std::size_t NDIM>
madness::Fock< T, NDIM >::Fock ( World & world,
const NemoBase * nemo )

References world.

◆ Fock() [5/7]

madness::Fock< double, 3 >::Fock ( World & world,
const Nemo * nemo )

◆ Fock() [6/7]

madness::Fock< double, 3 >::Fock ( World & world,
const OEP * oep )

◆ Fock() [7/7]

madness::Fock< double, 3 >::Fock ( World & world,
const NemoBase * nemobase )

Member Function Documentation

◆ add_operator() [1/2]

template<typename T, std::size_t NDIM>
void madness::Fock< T, NDIM >::add_operator ( std::string name,
std::shared_ptr< SCFOperatorBase< T, NDIM > > new_op )
inline

add an operator with default prefactor 1.0

References madness::SCFOperatorBase< T, NDIM >::SCFOperatorBase(), madness::name(), and operators.

Referenced by madness::OEP::make_fock_operator().

◆ add_operator() [2/2]

template<typename T, std::size_t NDIM>
void madness::Fock< T, NDIM >::add_operator ( std::string name,
std::tuple< double, std::shared_ptr< SCFOperatorBase< T, NDIM > > > new_op )
inline

add an operator with custom prefactor (e.g. -1.0 for the exchange, supposedly)

References madness::SCFOperatorBase< T, NDIM >::SCFOperatorBase(), madness::name(), and operators.

◆ info()

template<typename T, std::size_t NDIM>
std::string madness::Fock< T, NDIM >::info ( ) const
inlinevirtual

pretty print what this is actually computing

Implements madness::SCFOperatorBase< T, NDIM >.

References MADNESS_CHECK, op(), and operators.

◆ operator()() [1/5]

template<typename T, std::size_t NDIM>
T madness::Fock< T, NDIM >::operator() ( const Function< T, NDIM > & bra,
const Function< T, NDIM > & ket ) const
inlinevirtual

compute the matrix element <bra | op | ket>

Parameters
brabra state
ketket state
Returns
the matrix element <bra | op | ket>

Implements madness::SCFOperatorBase< T, NDIM >.

◆ operator()() [2/5]

template<typename T, std::size_t NDIM>
Function< T, NDIM > madness::Fock< T, NDIM >::operator() ( const Function< T, NDIM > & ket) const
inlinevirtual

apply this operator on the argument function

Parameters
ketthe argument function
Returns
op(ket)

Implements madness::SCFOperatorBase< T, NDIM >.

References MADNESS_EXCEPTION.

Referenced by operator()().

◆ operator()() [3/5]

template<typename T, std::size_t NDIM>
Tensor< T > madness::Fock< T, NDIM >::operator() ( const std::vector< Function< T, NDIM > > & vbra,
const std::vector< Function< T, NDIM > > & vket ) const
inline

compute the Fock matrix by summing up all contributions

References operator()().

◆ operator()() [4/5]

template<typename T, std::size_t NDIM>
Tensor< T > madness::Fock< T, NDIM >::operator() ( const std::vector< Function< T, NDIM > > & vbra,
const std::vector< Function< T, NDIM > > & vket,
const bool symmetric ) const
inline

compute the Fock matrix by summing up all contributions

References op(), and operators.

◆ operator()() [5/5]

template<typename T, std::size_t NDIM>
std::vector< Function< T, NDIM > > madness::Fock< T, NDIM >::operator() ( const std::vector< Function< T, NDIM > > & vket) const
inline

◆ remove_operator()

template<typename T, std::size_t NDIM>
int madness::Fock< T, NDIM >::remove_operator ( std::string name)
inline

remove operator, returns 0 if no operator was found

References madness::name(), and operators.

Referenced by madness::TDHF::get_tda_potential(), and madness::OEP::make_fock_operator().

Member Data Documentation

◆ operators

template<typename T, std::size_t NDIM>
std::map<std::string,valueT> madness::Fock< T, NDIM >::operators
private

all the Fock operator contribution

Referenced by add_operator(), add_operator(), info(), operator()(), operator()(), and remove_operator().

◆ world

template<typename T, std::size_t NDIM>
World& madness::Fock< T, NDIM >::world
private

the world

Referenced by Fock(), Fock(), Fock(), Fock(), and operator()().


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