MADNESS  0.10.1
Typedefs | Functions
oldtest.cc File Reference

Test code for Tensor, TensorIterator, SliceTensor, etc. More...

#include <madness/tensor/tensor.h>
#include <iostream>
#include <cstdio>
#include <complex>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <madness/world/print.h>
Include dependency graph for oldtest.cc:

Typedefs

typedef std::complex< double > double_complex
 
typedef std::complex< float > float_complex
 

Functions

template<typename T , typename Q >
bool check (const T &t, const Q &q, double tol=1e-7)
 
void error (const char *msg, int code)
 
int main ()
 
template<typename T >
double mynorm (T x)
 
template<>
double mynorm< double_complex > (double_complex x)
 
template<>
double mynorm< float_complex > (float_complex x)
 
template<typename T , typename Q >
void Test1 ()
 
template<typename T >
void Test3 ()
 
template<class T >
void Test5 ()
 
template<class T >
void Test6 ()
 
template<>
void Test6a (Tensor< double_complex > &, long[])
 
template<>
void Test6a (Tensor< float_complex > &, long[])
 
template<class T >
void Test6a (Tensor< T > &f, long ind[])
 
template<class T >
void Test7 ()
 
template<class T >
void Test8 ()
 

Detailed Description

Test code for Tensor, TensorIterator, SliceTensor, etc.

Typedef Documentation

◆ double_complex

typedef std::complex<double> double_complex

◆ float_complex

typedef std::complex<float> float_complex

Function Documentation

◆ check()

template<typename T , typename Q >
bool check ( const T t,
const Q q,
double  tol = 1e-7 
)
inline

References std::abs(), ok(), q(), and T().

Referenced by Test1(), Test5(), and Test7().

◆ error()

void error ( const char *  msg,
int  code 
)

Referenced by main(), and SafeMPI::Status::Set_error().

◆ main()

int main ( void  )

◆ mynorm()

template<typename T >
double mynorm ( T  x)

Referenced by Test6().

◆ mynorm< double_complex >()

template<>
double mynorm< double_complex > ( double_complex  x)

◆ mynorm< float_complex >()

template<>
double mynorm< float_complex > ( float_complex  x)

◆ Test1()

template<typename T , typename Q >
void Test1 ( )

◆ Test3()

template<typename T >
void Test3 ( )

◆ Test5()

template<class T >
void Test5 ( )

◆ Test6()

template<class T >
void Test6 ( )

◆ Test6a() [1/3]

template<>
void Test6a ( Tensor< double_complex > &  ,
long  [] 
)

◆ Test6a() [2/3]

template<>
void Test6a ( Tensor< float_complex > &  ,
long  [] 
)

◆ Test6a() [3/3]

template<class T >
void Test6a ( Tensor< T > &  f,
long  ind[] 
)

References madness::error(), madness::f, and T().

Referenced by Test6().

◆ Test7()

template<class T >
void Test7 ( )

◆ Test8()

template<class T >
void Test8 ( )