MADNESS 0.10.1
testvmra.cc File Reference
Include dependency graph for testvmra.cc:

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)
#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.
template<typename T, std::size_t NDIM>
void test_add (World &world)
void test_assignment_factories (World &world)
 Assignment factories: owners in range, deterministic, LPT balances a skewed load.
template<typename T, typename R, int NDIM>
void test_cross (World &world)
template<typename T, typename R, int NDIM, bool sym>
void test_dot (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_orthonormalize_canonical (World &world)
template<typename T, int NDIM>
void test_orthonormalize_symmetric (World &world)
template<typename T, std::size_t NDIM>
void test_redistribute_to_batches (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

Macro Definition Documentation

◆ END_TIMER

#define END_TIMER ( msg)
Value:
ttt=wall_time()-ttt; sss=cpu_time()-sss; if (world.rank()==0) printf("timer: %20.20s %8.2fs %8.2fs\n", msg, sss, ttt)
static double ttt
Definition mcpfit.cc:57
static double sss
Definition mcpfit.cc:57
double wall_time()
Returns the wall time in seconds relative to an arbitrary origin.
Definition timers.cc:48
double cpu_time()
Definition test_list.cc:43

Referenced by test_cross(), test_dot(), test_inner(), test_matrix_mul_sparse(), test_orthonormalize_canonical(), test_orthonormalize_symmetric(), test_rot(), and test_transform().

◆ NO_GENTENSOR

#define NO_GENTENSOR

◆ START_TIMER

#define START_TIMER   world.gop.fence(); ttt=wall_time(); sss=cpu_time()

Function Documentation

◆ complexify()

template<typename T>
T complexify ( T c)

References c.

Referenced by Gaussian< T, NDIM >::Gaussian().

◆ complexify< double_complex >()

References c.

◆ complexify< float_complex >()

References c.

◆ main()

◆ RandomGaussian()

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.

References madness::FunctionDefaults< NDIM >::cell, Gaussian, lo, NDIM, PI, pow(), madness::RandomValue(), and madness::RandomValue< double >().

◆ test_add()

◆ test_assignment_factories()

void test_assignment_factories ( World & world)

Assignment factories: owners in range, deterministic, LPT balances a skewed load.

References madness::assign_cost_aware(), madness::assign_round_robin(), load(), madness::load(), MADNESS_CHECK, nfunc, madness::print(), and madness::World::rank().

Referenced by main().

◆ test_cross()

◆ test_dot()

◆ test_inner()

◆ test_matrix_mul_sparse()

◆ test_multi_to_multi_op()

◆ test_orthonormalize_canonical()

◆ test_orthonormalize_symmetric()

◆ test_redistribute_to_batches()

◆ test_rot()

◆ test_transform()

Variable Documentation

◆ PI

const double PI = 3.1415926535897932384

◆ sss

double sss

◆ ttt

double ttt