MADNESS 0.10.1
Classes | Functions
test_BSHApply.cc File Reference
#include <madness/mra/mra.h>
#include <madness/chem/BSHApply.h>
#include <madness/world/test_utilities.h>
Include dependency graph for test_BSHApply.cc:

Classes

struct  HO_function< NDIM >
 

Functions

template<typename T , std::size_t NDIM>
T compute_energy (const Function< double, NDIM > &potential, const Function< T, NDIM > &f)
 
double compute_energy (const std::vector< int > &n)
 
template<typename T , std::size_t NDIM>
Tensor< Tcompute_fock_matrix (World &world, const Function< double, NDIM > &potential, const std::vector< Function< T, NDIM > > f)
 compute the Fock (aka coupling) matrix
 
int factorial (int n)
 
double hermite (int n, double x)
 
int main (int argc, char **argv)
 
template<std::size_t NDIM>
std::vector< Function< double, NDIM > > mix (const std::vector< Function< double, NDIM > > &vf, const double theta)
 
template<std::size_t NDIM>
std::vector< Function< double_complex, NDIM > > mix (const std::vector< Function< double_complex, NDIM > > &vf, const double theta)
 
Tensor< double_complexsu_complex (const double theta)
 
Tensor< double > su_real (const double theta)
 
template<typename T , std::size_t NDIM>
int test_converged_function (World &world, double shift, bool coupling)
 test the n-dimensional harmonic oscillator
 
template<typename T , std::size_t NDIM>
int test_convergence (World &world, double shift, bool coupling)
 

Function Documentation

◆ compute_energy() [1/2]

template<typename T , std::size_t NDIM>
T compute_energy ( const Function< double, NDIM > &  potential,
const Function< T, NDIM > &  f 
)

◆ compute_energy() [2/2]

double compute_energy ( const std::vector< int > &  n)

◆ compute_fock_matrix()

template<typename T , std::size_t NDIM>
Tensor< T > compute_fock_matrix ( World world,
const Function< double, NDIM > &  potential,
const std::vector< Function< T, NDIM > >  f 
)

compute the Fock (aka coupling) matrix

References madness::f, madness::grad(), madness::inner(), madness::matrix_inner(), and potential().

Referenced by test_convergence().

◆ factorial()

int factorial ( int  n)

◆ hermite()

double hermite ( int  n,
double  x 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ mix() [1/2]

template<std::size_t NDIM>
std::vector< Function< double, NDIM > > mix ( const std::vector< Function< double, NDIM > > &  vf,
const double  theta 
)

◆ mix() [2/2]

template<std::size_t NDIM>
std::vector< Function< double_complex, NDIM > > mix ( const std::vector< Function< double_complex, NDIM > > &  vf,
const double  theta 
)

◆ su_complex()

Tensor< double_complex > su_complex ( const double  theta)

◆ su_real()

Tensor< double > su_real ( const double  theta)

Referenced by mix().

◆ test_converged_function()

template<typename T , std::size_t NDIM>
int test_converged_function ( World world,
double  shift,
bool  coupling 
)

◆ test_convergence()

template<typename T , std::size_t NDIM>
int test_convergence ( World world,
double  shift,
bool  coupling 
)