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>
◆ double_complex
◆ float_complex
◆ check()
template<typename T, typename
Q>
| bool check |
( |
const T & | t, |
|
|
const Q & | q, |
|
|
double | tol = 1e-7 ) |
|
inline |
◆ error()
| void error |
( |
const char * | msg, |
|
|
int | code ) |
Referenced by check(), check(), check_vector(), compare(), main(), main(), make_ri_basis(), SafeMPI::Status::Set_error(), TEST(), test(), Test1(), Test5(), Test6(), Test6a(), Test7(), test_adaptive_diagnosis(), test_adaptive_grid_projection(), test_adaptive_project(), test_add(), test_addition(), test_combined_operators(), test_custom_worldobject(), test_deferred(), test_direct_projection(), test_emul(), test_gconv(), test_hf_be(), test_hf_he(), test_immediate(), test_integration(), test_lowrank_function(), test_multi_to_multi_op(), test_orthogonalization(), test_per(), test_projector(), test_reconstruct(), test_recursive_apply(), test_reduce_rank(), test_remove_lindep(), test_simple(), test_sliced_addition(), test_sliced_assignment(), test_spherical_box(), test_stuff(), test_tuple(), test_vector_of_scalar_task(), and testPeriodicCoulomb3d().
◆ main()
References a, Tensor< T >::bounds_checking(), e(), error(), f, madness::f, madness::g, madness::BaseTensor::get_instance_count(), madness::real(), Test1(), Test3(), Test5(), Test6(), and Test7().
◆ mynorm()
◆ mynorm< double_complex >()
◆ mynorm< float_complex >()
◆ Test1()
template<typename T, typename
Q>
References check(), d, madness::BaseTensor::dim(), e(), error(), madness::Tensor< T >::fillindex(), madness::Tensor< T >::fillrandom(), madness::BaseTensor::id(), IND1, IND2, IND3, IND4, IND5, IND6, ITERATOR1, ITERATOR2, ITERATOR3, ITERATOR4, ITERATOR5, ITERATOR6, madness::BaseTensor::ndim(), madness::BaseTensor::size(), madness::BaseTensor::stride(), and madness::tensor_type_names.
Referenced by main().
◆ Test3()
◆ Test5()
References a, std::abs(), b, c, check(), madness::copy(), d, e(), error(), f, madness::f, IND5, ITERATOR5, and madness::tensor_type_names.
Referenced by main().
◆ Test6()
References std::abs(), e(), error(), f, madness::f, madness::g, IND4, ITERATOR4, mynorm(), q(), TENSOR_MAXDIM, madness::tensor_type_names, and Test6a().
Referenced by main().
◆ Test6a() [1/3]
◆ Test6a() [2/3]
◆ Test6a() [3/3]
template<class T>
| void Test6a |
( |
Tensor< T > & | f, |
|
|
long | ind[] ) |
◆ Test7()
References std::abs(), c, check(), madness::copy(), dave(), e(), error(), madness::fast_transform(), madness::Tensor< T >::fill(), madness::Tensor< T >::fillrandom(), fred(), madness::inner(), ITERATOR2, ITERATOR4, ITERATOR6, k, madness::Tensor< T >::normf(), madness::outer(), madness::print(), q(), sum, madness::Tensor< T >::swapdim(), madness::tensor_type_names, and madness::transform().
Referenced by main().
◆ Test8()