MADNESS
version 0.9
|
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>
Typedefs | |
typedef std::complex< float > | float_complex |
typedef std::complex< double > | double_complex |
Functions | |
void | error (const char *msg, int code) |
template<typename T > | |
double | mynorm (T x) |
template<> | |
double | mynorm< float_complex > (float_complex x) |
template<> | |
double | mynorm< double_complex > (double_complex x) |
template<typename T , typename Q > | |
bool | check (const T &t, const Q &q, double tol=1e-7) |
template<typename T , typename Q > | |
void | Test1 () |
template<typename T > | |
void | Test3 () |
template<class T > | |
void | Test5 () |
template<class T > | |
void | Test6a (Tensor< T > &f, long ind[]) |
template<> | |
void | Test6a (Tensor< float_complex > &, long[]) |
template<> | |
void | Test6a (Tensor< double_complex > &, long[]) |
template<class T > | |
void | Test6 () |
template<class T > | |
void | Test7 () |
template<class T > | |
void | Test8 () |
int | main () |
Test code for Tensor, TensorIterator, SliceTensor, etc.
typedef std::complex<double> double_complex |
typedef std::complex<float> float_complex |
|
inline |
References std::tr1::T().
void error | ( | const char * | msg, |
int | code | ||
) |
int main | ( | ) |
References a(), madness::error(), madness::f, madness::g, and madness::real().
double mynorm | ( | T | x | ) |
Referenced by Test6().
double mynorm< double_complex > | ( | double_complex | x | ) |
References madness::detail::norm().
double mynorm< float_complex > | ( | float_complex | x | ) |
References madness::detail::norm().
void Test1 | ( | ) |
void Test3 | ( | ) |
References ITERATOR3, and madness::tensor_type_names.
void Test5 | ( | ) |
References a(), b(), c, check(), madness::copy(), madness::error(), madness::f, IND5, ITERATOR5, std::tr1::T(), and madness::tensor_type_names.
void Test6 | ( | ) |
References madness::error(), madness::f, madness::g, IND4, ITERATOR4, mynorm(), sqrt(), std::tr1::T(), TENSOR_MAXDIM, madness::tensor_type_names, and Test6a().
void Test6a | ( | Tensor< T > & | f, |
long | ind[] | ||
) |
References madness::error(), madness::f, and std::tr1::T().
Referenced by Test6().
void Test6a | ( | Tensor< float_complex > & | , |
long | [] | ||
) |
void Test6a | ( | Tensor< double_complex > & | , |
long | [] | ||
) |
void Test7 | ( | ) |
void Test8 | ( | ) |