MADNESS  0.10.1
Classes | Macros | Functions | Variables
testvmra.cc File Reference
#include <madness/mra/mra.h>
#include <madness/mra/vmra.h>
#include <madness/misc/ran.h>
#include <madness/world/test_utilities.h>
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)   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
 

Macro Definition Documentation

◆ END_TIMER

#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)

◆ 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.

◆ complexify< double_complex >()

References c.

◆ complexify< float_complex >()

References c.

◆ main()

int main ( int  argc,
char **  argv 
)

◆ 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 lo, NDIM, PI, pow(), madness::RandomValue< double >(), and T().

◆ test_add()

template<typename T , std::size_t NDIM>
void test_add ( World world)

◆ test_cross()

template<typename T , typename R , int NDIM>
void test_cross ( World world)

◆ test_inner()

template<typename T , typename R , int NDIM, bool sym>
void test_inner ( World world)

◆ test_matrix_mul_sparse()

template<typename T , int NDIM>
void test_matrix_mul_sparse ( World world)

◆ test_multi_to_multi_op()

template<std::size_t NDIM>
void test_multi_to_multi_op ( World world)

◆ test_rot()

template<typename T , int NDIM>
void test_rot ( World world)

◆ test_transform()

template<typename T , std::size_t NDIM>
int test_transform ( World world)

Variable Documentation

◆ PI

const double PI = 3.1415926535897932384

Referenced by RandomGaussian().

◆ sss

double sss

◆ ttt

double ttt