52 double real(
double x) {
return x;}
56 double imag(
double x) {
return 0.0;}
67 Tensor< std::complex<Q> >
c(r.ndim(), r.dims());
77 Tensor<Q> r(
c.ndim(),
c.dims());
87 Tensor<Q> r(
c.ndim(),
c.dims());
97 Tensor<Q> r(
c.ndim(),
c.dims());
104 template <
typename Q,
int NDIM>
110 Tensor<resultT> result(t.ndim(), t.dims());
114 template <
typename Archive>
120 template<
typename Q,
int NDIM>
128 template <
typename Q,
int NDIM>
134 Tensor<resultT> result(t.ndim(), t.dims());
138 template <
typename Archive>
144 template<
typename Q,
int NDIM>
152 template <
typename Q,
int NDIM>
158 Tensor<resultT> result(t.ndim(), t.dims());
162 template <
typename Archive>
168 template<
typename Q,
int NDIM>
176 template <
typename Q,
int NDIM>
182 Tensor<resultT> result(t.ndim(), t.dims());
186 template <
typename Archive>
192 template<
typename Q,
int NDIM>
200 template <
typename Q,
int NDIM>
206 Tensor<resultT> result(t.ndim(), t.dims());
210 template <
typename Archive>
224 template <
typename Q,
int NDIM>
230 Tensor<resultT> result(t.ndim(), t.dims());
234 template <
typename Archive>
240 template <
typename Q,
int NDIM>
Tensor< Q > tensor_xreal(const Tensor< std::complex< Q > > &c)
Definition: complexfun.h:75
std::complex< double > func(int n, int t1, int t2, int t3, double xx, double yy, double zz)
Definition: wannier.cc:98
double imag(double x)
Definition: complexfun.h:56
Main include file for MADNESS and defines Function interface.
const int NDIM
Definition: tdse1.cc:44
Q resultT
Definition: complexfun.h:203
void serialize(Archive &ar)
Definition: complexfun.h:187
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:179
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:107
#define BINARY_OPTIMIZED_ITERATOR(X, x, Y, y, exp)
Definition: tensor_macros.h:701
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:132
Tensor< Q > tensor_abs(const Tensor< std::complex< Q > > &c)
Definition: complexfun.h:95
Definition: complexfun.h:177
Definition: complexfun.h:201
Function< typename TensorTypeData< Q >::scalar_type, NDIM > abs_square(const Function< Q, NDIM > &func)
Definition: complexfun.h:121
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:155
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:228
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:180
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
Definition: complexfun.h:225
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:204
void serialize(Archive &ar)
Definition: complexfun.h:211
A multiresolution adaptive numerical function.
Definition: derivative.h:61
void serialize(Archive &ar)
Definition: complexfun.h:139
void serialize(Archive &ar)
Definition: complexfun.h:163
Function< typename opT::resultT, NDIM > unary_op(const Function< Q, NDIM > &func, const opT &op, bool fence=true)
Out of place application of unary operation to function values with optional fence.
Definition: mra.h:1607
double real(double x)
Definition: complexfun.h:52
double abs(double x)
Definition: complexfun.h:48
Definition: complexfun.h:153
void serialize(Archive &ar)
Definition: complexfun.h:235
Tensor< std::complex< Q > > tensor_real2complex(const Tensor< Q > &r)
Definition: complexfun.h:65
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:108
Definition: complexfun.h:129
Definition: complexfun.h:105
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:131
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:156
const mpreal fabs(const mpreal &v, mp_rnd_t rnd_mode)
Definition: mpreal.h:2187
Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces.
Definition: chem/atomutil.cc:45
Tensor< Q > tensor_ximag(const Tensor< std::complex< Q > > &c)
Definition: complexfun.h:85
const double c
Definition: gfit.cc:200
Key is the index for a node of the 2^NDIM-tree.
Definition: key.h:69
Function< std::complex< Q >, NDIM > function_real2complex(const Function< Q, NDIM > &r)
Definition: complexfun.h:241
Traits class to specify support of numeric types.
Definition: type_data.h:56
Function< T, NDIM > conj(const Function< T, NDIM > &f, bool fence=true)
Return the complex conjugate of the input function with the same distribution and optional fence...
Definition: mra.h:1879
std::complex< Q > resultT
Definition: complexfun.h:227
void serialize(Archive &ar)
Definition: complexfun.h:115