MADNESS 0.10.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
madness::CCPairBuilder Class Reference

build an MP2 or CC2 or LRCC2 etc pair, possibly including the lo-rank parts More...

#include <CCStructures.h>

Collaboration diagram for madness::CCPairBuilder:
Collaboration graph
[legend]

Public Member Functions

 CCPairBuilder (World &world, const Info &info)
 
CCPair complete_pair_with_low_rank_parts (const CCPair &pair) const
 complete the given pair with the low-rank parts
 
template<typename T , size_t NDIM>
Function< T, NDIMload_function (const std::string name, bool do_print) const
 Function to load a function from disk.
 
Pairs< CCPairmake_all_bare_pairs () const
 make a CCPair with the 6d function only and some bookkeeping information
 
CCPair make_bare_pair (const int i, const int j) const
 make a CCPair without the 6d function and some bookkeeping information
 
CCPair make_bare_pair_from_file (const int i, const int j) const
 make a CCPair with the 6d function only and some bookkeeping information
 
CCPair make_pair (const int i, const int j, const std::vector< CCPairFunction< double, 6 > > &u) const
 make a CCPair
 
CCPairBuilderset_ctype (const CalcType &type)
 
CCPairBuilderset_ex_singles (const CC_vecfunction &ex)
 provide excited state singles, needed for CC2 and LRCC2 wave function ansatz
 
CCPairBuilderset_gs_singles (const CC_vecfunction &gs)
 provide ground-state singles, needed for CC2 and LRCC2 wave function ansatz
 

Static Public Member Functions

static CCState cc_state (const CalcType &type)
 

Public Attributes

CalcType ctype =CT_UNDEFINED
 
CC_vecfunction ex_singles
 
CC_vecfunction gs_singles
 
const Infoinfo
 
Worldworld
 

Detailed Description

build an MP2 or CC2 or LRCC2 etc pair, possibly including the lo-rank parts

Constructor & Destructor Documentation

◆ CCPairBuilder()

madness::CCPairBuilder::CCPairBuilder ( World world,
const Info info 
)
inline

Member Function Documentation

◆ cc_state()

static CCState madness::CCPairBuilder::cc_state ( const CalcType type)
inlinestatic

◆ complete_pair_with_low_rank_parts()

CCPair madness::CCPairBuilder::complete_pair_with_low_rank_parts ( const CCPair pair) const

◆ load_function()

template<typename T , size_t NDIM>
Function< T, NDIM > madness::CCPairBuilder::load_function ( const std::string  name,
bool  do_print 
) const
inline

Function to load a function from disk.

Parameters
[in]nameof the file in which the function was stored
do_print
Returns
the function, possibly not initialized if not found on disk

References madness::f, madness::name(), madness::print(), madness::World::rank(), madness::reconstructed, madness::save(), and world.

◆ make_all_bare_pairs()

Pairs< CCPair > madness::CCPairBuilder::make_all_bare_pairs ( ) const
inline

◆ make_bare_pair()

CCPair madness::CCPairBuilder::make_bare_pair ( const int  i,
const int  j 
) const

◆ make_bare_pair_from_file()

CCPair madness::CCPairBuilder::make_bare_pair_from_file ( const int  i,
const int  j 
) const

◆ make_pair()

CCPair madness::CCPairBuilder::make_pair ( const int  i,
const int  j,
const std::vector< CCPairFunction< double, 6 > > &  u 
) const

make a CCPair

make a CCPair with the given function

References madness::CCPair::functions, MADNESS_CHECK_THROW, make_bare_pair(), and u().

◆ set_ctype()

CCPairBuilder & madness::CCPairBuilder::set_ctype ( const CalcType type)
inline

References ctype, and madness::type().

◆ set_ex_singles()

CCPairBuilder & madness::CCPairBuilder::set_ex_singles ( const CC_vecfunction ex)
inline

provide excited state singles, needed for CC2 and LRCC2 wave function ansatz

References ex_singles.

◆ set_gs_singles()

CCPairBuilder & madness::CCPairBuilder::set_gs_singles ( const CC_vecfunction gs)
inline

provide ground-state singles, needed for CC2 and LRCC2 wave function ansatz

References gs_singles.

Member Data Documentation

◆ ctype

CalcType madness::CCPairBuilder::ctype =CT_UNDEFINED

Referenced by make_bare_pair(), and set_ctype().

◆ ex_singles

CC_vecfunction madness::CCPairBuilder::ex_singles

◆ gs_singles

CC_vecfunction madness::CCPairBuilder::gs_singles

◆ info

const Info& madness::CCPairBuilder::info

◆ world

World& madness::CCPairBuilder::world

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