MADNESS
0.10.1
|
A helper structure which holds a map of functions. More...
#include <CCStructures.h>
Public Types | |
typedef std::map< std::size_t, CCFunction< double, 3 > > | CC_functionmap |
Public Member Functions | |
CC_vecfunction () | |
CC_vecfunction (const CC_vecfunction &other) | |
copy ctor (shallow) More... | |
CC_vecfunction (const FuncType type_) | |
CC_vecfunction (const std::vector< CCFunction< double, 3 >> &v) | |
CC_vecfunction (const std::vector< CCFunction< double, 3 >> &v, const FuncType type_) | |
CC_vecfunction (const vector_real_function_3d &v) | |
CC_vecfunction (const vector_real_function_3d &v, const FuncType &type) | |
CC_vecfunction (const vector_real_function_3d &v, const FuncType &type, const size_t &freeze) | |
vector_real_function_3d | get_vecfunction () const |
Returns all the functions of the map as vector. More... | |
hashT | hash () const |
void | insert (const size_t &i, const CCFunction< double, 3 > &f) |
setter More... | |
bool | is_converged (const double econv, const double dconv) const |
std::string | name (const int ex) const |
excitation irrep (direct product of x function and corresponding orbital) More... | |
CCFunction< double, 3 > & | operator() (const CCFunction< double, 3 > &i) |
getter More... | |
const CCFunction< double, 3 > & | operator() (const CCFunction< double, 3 > &i) const |
getter More... | |
CCFunction< double, 3 > & | operator() (const size_t &i) |
getter More... | |
const CCFunction< double, 3 > & | operator() (const size_t &i) const |
getter More... | |
CC_vecfunction | operator* (const double &fac) const |
scalar multiplication More... | |
bool | operator< (const CC_vecfunction &b) const |
operator needed for sort operation (sorted by omega values) More... | |
CC_vecfunction & | operator= (const CC_vecfunction &other) |
assignment operator, shallow wrt the functions More... | |
void | plot (const std::string &msg="") const |
void | print_size (const std::string &msg="!?not assigned!?") const |
Print the memory of which is used by all the functions in the map. More... | |
void | save_restartdata (World &world, std::string filename) const |
void | scale (const double &factor) |
scaling (inplace) More... | |
template<typename Archive > | |
void | serialize (const Archive &ar) |
void | set_functions (const vector_real_function_3d &v, const FuncType &type, const size_t &freeze) |
setter More... | |
size_t | size () const |
Get the size vector (number of functions in the map) More... | |
Static Public Member Functions | |
static CC_vecfunction | load_restartdata (World &world, std::string filename) |
Public Attributes | |
double | current_error |
excitation energy More... | |
double | delta |
CC_functionmap | functions |
std::string | irrep = "null" |
double | omega |
FuncType | type |
Friends | |
CC_vecfunction | copy (const CC_vecfunction &other) |
returns a deep copy (void shallow copy errors) More... | |
A helper structure which holds a map of functions.
typedef std::map<std::size_t, CCFunction<double,3> > madness::CC_vecfunction::CC_functionmap |
|
inline |
Referenced by operator*().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
copy ctor (shallow)
|
inline |
Returns all the functions of the map as vector.
References functions.
Referenced by madness::TDHF::get_tda_potential(), madness::CC2::iterate_lrcc2_pairs(), madness::CC2::iterate_pair(), madness::CC2::iterate_singles(), madness::TDHF::make_bra(), madness::TDHF::make_cis_matrix(), madness::CCConvolutionOperator< T, NDIM >::operator()(), operator*(), madness::TDHF::oscillator_strength_length(), madness::TDHF::oscillator_strength_velocity(), madness::TDHF::prepare_calculation(), and madness::CC2::solve_cc2().
|
inline |
References madness::f, functions, madness::hash_combine(), madness::hash_value(), and type.
|
inline |
|
inline |
References current_error, and delta.
Referenced by madness::TDHF::solve_cis().
|
inlinestatic |
References madness::filename.
Referenced by madness::CC2::initialize_singles(), and madness::TDHF::solve_cis().
|
inline |
excitation irrep (direct product of x function and corresponding orbital)
References madness::name(), and type.
Referenced by madness::CC2::iterate_singles().
|
inline |
getter
References functions, and madness::CCFunction< T, NDIM >::i.
|
inline |
getter
References functions, and madness::CCFunction< T, NDIM >::i.
|
inline |
getter
References functions.
|
inline |
getter
References functions.
|
inline |
scalar multiplication
References CC_vecfunction(), functions, get_vecfunction(), and type.
|
inline |
|
inline |
|
inline |
References functions.
Referenced by madness::TDHF::solve_cis().
void madness::CC_vecfunction::print_size | ( | const std::string & | msg = "!?not assigned!?" | ) | const |
Print the memory of which is used by all the functions in the map.
References functions.
|
inline |
References madness::filename.
Referenced by madness::CC2::solve_cc2().
|
inline |
scaling (inplace)
References functions.
|
inline |
References current_error, delta, functions, irrep, omega, size(), type, and madness::vec().
|
inline |
|
inline |
Get the size vector (number of functions in the map)
References functions.
Referenced by madness::TDHF::get_active_mo_bra(), madness::TDHF::get_active_mo_ket(), madness::CC2::iterate_singles(), madness::TDHF::make_perturbed_fock_matrix(), madness::TDHF::make_virtuals(), serialize(), madness::CC2::solve_cispd(), and madness::CCConvolutionOperator< T, NDIM >::update_elements().
|
friend |
returns a deep copy (void shallow copy errors)
double madness::CC_vecfunction::current_error |
excitation energy
Referenced by is_converged(), operator=(), and serialize().
double madness::CC_vecfunction::delta |
Referenced by is_converged(), operator=(), and serialize().
CC_functionmap madness::CC_vecfunction::functions |
Referenced by CC_vecfunction(), madness::TDHF::get_tda_potential(), get_vecfunction(), hash(), insert(), madness::CC2::iterate_singles(), madness::CCConvolutionOperator< T, NDIM >::operator()(), operator()(), operator*(), operator=(), plot(), print_size(), scale(), serialize(), set_functions(), size(), and madness::CCConvolutionOperator< T, NDIM >::update_elements().
std::string madness::CC_vecfunction::irrep = "null" |
Referenced by operator=(), and serialize().
double madness::CC_vecfunction::omega |
Referenced by madness::CC2::iterate_adc2_pairs(), madness::CC2::iterate_singles(), operator<(), operator=(), madness::TDHF::oscillator_strength_length(), madness::TDHF::oscillator_strength_velocity(), serialize(), madness::CC2::solve(), madness::CC2::solve_cispd(), madness::CC2::update_constant_part_adc2(), and madness::CC2::update_constant_part_cispd().
FuncType madness::CC_vecfunction::type |
Referenced by CC_vecfunction(), hash(), madness::CC2::initialize_pairs(), madness::CC2::iterate_adc2_pairs(), madness::CC2::iterate_adc2_singles(), madness::CC2::iterate_lrcc2_pairs(), madness::CC2::iterate_lrcc2_singles(), madness::CC2::iterate_pair(), madness::CC2::iterate_singles(), name(), madness::CCConvolutionOperator< T, NDIM >::operator()(), operator*(), operator=(), serialize(), set_functions(), madness::CC2::solve_cc2(), madness::CC2::solve_cispd(), madness::TDHF::transform(), madness::CC2::update_constant_part_lrcc2(), madness::CCConvolutionOperator< T, NDIM >::update_elements(), madness::CC2::update_reg_residues_ex(), and madness::CC2::update_reg_residues_gs().