MADNESS  version 0.9
Functions
transform3d.cc File Reference

Functions

template<class T >
Tensor< T > transform3d (const Tensor< T > &t, const Tensor< T > &c)
 
Tensor< double_complextransform3d (const Tensor< double_complex > &t, const Tensor< double > &c)
 
template<class T >
Tensor< T > transform3d_3c (const Tensor< T > &t, const Tensor< T > &c0, const Tensor< T > &c1, const Tensor< T > &c2)
 
template Tensor< double > transform3d (const Tensor< double > &t, const Tensor< double > &c)
 
template Tensor< double > transform3d_3c (const Tensor< double > &t, const Tensor< double > &c0, const Tensor< double > &c1, const Tensor< double > &c2)
 

Function Documentation

template<class T >
Tensor<T> transform3d ( const Tensor< T > &  t,
const Tensor< T > &  c 
)

optomized 3d transform c must be 2d tensor(matrix) and must square t must be 3d tensor and must be a cube t and c dims must match t and c must be contiguous

1 result(i,j,k) <-- sum(i',j',k') A(i',j',k') C(i',i) C(j',j) C(k',k)

References mTxm(), restrict, std::tr1::T(), TENSOR_ASSERT, and madness::transform().

Referenced by main().

Tensor<double_complex> transform3d ( const Tensor< double_complex > &  t,
const Tensor< double > &  c 
)
template Tensor<double> transform3d ( const Tensor< double > &  t,
const Tensor< double > &  c 
)
template<class T >
Tensor<T> transform3d_3c ( const Tensor< T > &  t,
const Tensor< T > &  c0,
const Tensor< T > &  c1,
const Tensor< T > &  c2 
)

optomized 3d transform with three different C's all three c must be 2d tensor(matrix) and must square all three c dims must match t must be 3d tensor and must be a cube t and c dims must match t and c must be contiguous

1 result(i,j,k) <-- sum(i',j',k') A(i',j',k') C0(i',i) C1(j',j) C2(k',k)

References mTxm(), restrict, std::tr1::T(), and TENSOR_ASSERT.

template Tensor<double> transform3d_3c ( const Tensor< double > &  t,
const Tensor< double > &  c0,
const Tensor< double > &  c1,
const Tensor< double > &  c2 
)