MADNESS
0.10.1
|
#include <madness/mra/mra.h>
#include <madness/mra/vmra.h>
#include <madness/misc/ran.h>
#include <madness/world/test_utilities.h>
Classes | |
class | Gaussian< T, NDIM > |
struct | many_to_many_op< NDIM > |
struct to test the multi_to_multi_op_values More... | |
Macros | |
#define | END_TIMER(msg) ttt=wall_time()-ttt; sss=cpu_time()-sss; if (world.rank()==0) printf("timer: %20.20s %8.2fs %8.2fs\n", msg, sss, ttt) |
#define | NO_GENTENSOR |
#define | START_TIMER world.gop.fence(); ttt=wall_time(); sss=cpu_time() |
Functions | |
template<typename T > | |
T | complexify (T c) |
template<> | |
double_complex | complexify< double_complex > (double_complex c) |
template<> | |
float_complex | complexify< float_complex > (float_complex c) |
int | main (int argc, char **argv) |
template<typename T , std::size_t NDIM> | |
Gaussian< T, NDIM > * | RandomGaussian (const Tensor< double > cell, double expntmax=1e5) |
Makes a square-normalized Gaussian with random origin and exponent. More... | |
template<typename T , std::size_t NDIM> | |
void | test_add (World &world) |
template<typename T , typename R , int NDIM> | |
void | test_cross (World &world) |
template<typename T , typename R , int NDIM, bool sym> | |
void | test_inner (World &world) |
template<typename T , int NDIM> | |
void | test_matrix_mul_sparse (World &world) |
template<std::size_t NDIM> | |
void | test_multi_to_multi_op (World &world) |
template<typename T , int NDIM> | |
void | test_rot (World &world) |
template<typename T , std::size_t NDIM> | |
int | test_transform (World &world) |
Variables | |
const double | PI = 3.1415926535897932384 |
double | sss |
double | ttt |
#define END_TIMER | ( | msg | ) | ttt=wall_time()-ttt; sss=cpu_time()-sss; if (world.rank()==0) printf("timer: %20.20s %8.2fs %8.2fs\n", msg, sss, ttt) |
#define NO_GENTENSOR |
double_complex complexify< double_complex > | ( | double_complex | c | ) |
References c.
float_complex complexify< float_complex > | ( | float_complex | c | ) |
References c.
int main | ( | int | argc, |
char ** | argv | ||
) |
void test_add | ( | World & | world | ) |
References diff(), madness::FunctionFactory< T, NDIM >::functor(), NDIM, madness::norm2(), madness::Vector< T, N >::normf(), madness::print(), madness::r2(), madness::FunctionDefaults< NDIM >::set_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::sum(), and thresh.
void test_cross | ( | World & | world | ) |
References madness::compress(), madness::cross(), madness::END_TIMER(), madness::f, madness::FunctionFactory< T, NDIM >::functor(), NDIM, madness::norm2(), madness::print(), R, madness::World::rank(), madness::FunctionDefaults< NDIM >::set_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::START_TIMER(), T(), madness::TENSOR_RESULT_TYPE(), and thresh.
void test_inner | ( | World & | world | ) |
References madness::compress(), madness::END_TIMER(), madness::f, madness::FunctionFactory< T, NDIM >::functor(), madness::matrix_inner(), madness::matrix_inner_old(), NDIM, madness::print(), R, madness::World::rank(), madness::FunctionDefaults< NDIM >::set_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::START_TIMER(), T(), madness::TENSOR_RESULT_TYPE(), and thresh.
void test_matrix_mul_sparse | ( | World & | world | ) |
References madness::END_TIMER(), madness::f, madness::FunctionFactory< T, NDIM >::functor(), MADNESS_CHECK, NDIM, madness::norm2(), madness::print(), madness::World::rank(), madness::FunctionDefaults< NDIM >::set_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::START_TIMER(), and thresh.
void test_multi_to_multi_op | ( | World & | world | ) |
References madness::error(), madness::f, madness::FunctionFactory< T, NDIM >::functor(), madness::multi_to_multi_op_values(), NDIM, madness::norm2(), op(), madness::print(), madness::World::rank(), madness::refine_to_common_level(), madness::FunctionDefaults< NDIM >::set_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), and thresh.
void test_rot | ( | World & | world | ) |
References madness::compress(), madness::div(), madness::END_TIMER(), madness::f, madness::FunctionFactory< T, NDIM >::functor(), madness::grad(), NDIM, madness::Function< T, NDIM >::norm2(), madness::norm2(), madness::print(), madness::World::rank(), madness::rot(), madness::FunctionDefaults< NDIM >::set_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::START_TIMER(), and thresh.
int test_transform | ( | World & | world | ) |
References c, madness::change_tree_state(), madness::test_output::checkpoint(), madness::compressed, madness::test_output::end(), madness::END_TIMER(), madness::f, madness::WorldGopInterface::fence(), madness::FunctionFactory< T, NDIM >::functor(), madness::World::gop, MADNESS_CHECK, NDIM, madness::norm2(), madness::print(), madness::RandomValue< int >(), madness::reconstructed, madness::redundant_after_merge, madness::FunctionDefaults< NDIM >::set_cell(), madness::test_output::set_cout_to_terminal(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::START_TIMER(), thresh, madness::transform(), and madness::transform_reconstructed().
const double PI = 3.1415926535897932384 |
Referenced by RandomGaussian().
double sss |
double ttt |