33 #ifndef __complex_fun__
34 #define __complex_fun__
36 template <
typename Q,
int NDIM>
39 typedef typename TensorTypeData<Q>::scalar_type
resultT;
40 Tensor<resultT>
operator()(
const Key<NDIM>& key,
const Tensor<Q>& t)
const
42 Tensor<resultT> result(t.ndim, t.dim);
46 template <
typename Archive>
50 template<
typename Q,
int NDIM>
51 Function<typename TensorTypeData<Q>::scalar_type,
NDIM>
real(
const Function<Q,NDIM>&
func)
56 inline void ln(
const Key<3> &key, Tensor<std::complex<double> > &t) {
std::complex< double > func(int n, int t1, int t2, int t3, double xx, double yy, double zz)
Definition: wannier.cc:98
const mpreal log(const mpreal &v, mp_rnd_t rnd_mode)
Definition: mpreal.h:2213
void serialize(Archive &ar)
Definition: complex_fun.h:47
const int NDIM
Definition: tdse1.cc:44
Definition: complex_fun.h:37
void ln(const Key< 3 > &key, Tensor< std::complex< double > > &t)
Definition: complex_fun.h:56
#define BINARY_OPTIMIZED_ITERATOR(X, x, Y, y, exp)
Definition: tensor_macros.h:701
Function< typename TensorTypeData< Q >::scalar_type, NDIM > real(const Function< Q, NDIM > &func)
Definition: complex_fun.h:51
Function< typename opT::resultT, NDIM > unary_op_coeffs(const Function< Q, NDIM > &func, const opT &op, bool fence=true)
Out of place application of unary operation to scaling function coefficients with optional fence...
Definition: mra.h:1620
#define UNARY_OPTIMIZED_ITERATOR(X, x, exp)
Definition: tensor_macros.h:658
TensorTypeData< Q >::scalar_type resultT
Definition: complex_fun.h:39
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complex_fun.h:40