MADNESS 0.10.1
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:

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, NDIM > load_function (const std::string name, bool do_print) const
 Function to load a function from disk.
Pairs< CCPair > make_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
CCPairBuilder & set_ctype (const CalcType &type)
CCPairBuilder & set_ex_singles (const CC_vecfunction &ex)
 provide excited state singles, needed for CC2 and LRCC2 wave function ansatz
CCPairBuilder & set_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 Info & info
World & world

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

References info, and world.

Referenced by set_ctype(), set_ex_singles(), and set_gs_singles().

Member Function Documentation

◆ cc_state()

◆ complete_pair_with_low_rank_parts()

◆ 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::FunctionDefaults< NDIM >::get_thresh(), madness::name(), madness::print(), madness::reconstructed, madness::save(), and world.

Referenced by make_bare_pair_from_file().

◆ make_all_bare_pairs()

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

make a CCPair with the 6d function only and some bookkeeping information

References info, madness::Pairs< T >::insert(), and make_bare_pair().

◆ 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 CCPairBuilder(), and ctype.

◆ 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 CCPairBuilder(), and 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 CCPairBuilder(), and 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

◆ world

World& madness::CCPairBuilder::world

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