48double abs(
double x) {
return fabs(x);}
52double real(
double x) {
return x;}
56double imag(
double x) {
return 0.0;}
104template <
typename Q,
int NDIM>
114 template <
typename Archive>
120template<
typename Q,
int NDIM>
128template <
typename Q,
int NDIM>
138 template <
typename Archive>
144template<
typename Q,
int NDIM>
152template <
typename Q,
int NDIM>
162 template <
typename Archive>
168template<
typename Q,
int NDIM>
176template <
typename Q,
int NDIM>
186 template <
typename Archive>
192template<
typename Q,
int NDIM>
200template <
typename Q,
int NDIM>
210 template <
typename Archive>
224template <
typename Q,
int NDIM>
234 template <
typename Archive>
240template <
typename Q,
int NDIM>
const long * dims() const
Returns the array of tensor dimensions.
Definition basetensor.h:153
long ndim() const
Returns the number of dimensions in the tensor.
Definition basetensor.h:144
A multiresolution adaptive numerical function.
Definition mra.h:122
Key is the index for a node of the 2^NDIM-tree.
Definition key.h:66
Traits class to specify support of numeric types.
Definition type_data.h:56
A tensor is a multidimension array.
Definition tensor.h:317
Main include file for MADNESS and defines Function interface.
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
double abs(double x)
Definition complexfun.h:48
Function< typename TensorTypeData< Q >::scalar_type, NDIM > abs_square(const Function< Q, NDIM > &func)
Definition complexfun.h:121
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:2046
Function< std::complex< Q >, NDIM > function_real2complex(const Function< Q, NDIM > &r)
Definition complexfun.h:241
Tensor< Q > tensor_abs(const Tensor< std::complex< Q > > &c)
Definition complexfun.h:95
std::shared_ptr< FunctionFunctorInterface< double, 3 > > func(new opT(g))
Tensor< std::complex< Q > > tensor_real2complex(const Tensor< Q > &r)
Definition complexfun.h:65
Tensor< Q > tensor_xreal(const Tensor< std::complex< Q > > &c)
Definition complexfun.h:75
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:1793
double imag(double x)
Definition complexfun.h:56
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:1780
double real(double x)
Definition complexfun.h:52
Tensor< Q > tensor_ximag(const Tensor< std::complex< Q > > &c)
Definition complexfun.h:85
static const double d
Definition nonlinschro.cc:121
double Q(double a)
Definition relops.cc:20
static const double c
Definition relops.cc:10
Definition complexfun.h:178
TensorTypeData< Q >::scalar_type resultT
Definition complexfun.h:179
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition complexfun.h:180
void serialize(Archive &ar)
Definition complexfun.h:187
Definition complexfun.h:106
void serialize(Archive &ar)
Definition complexfun.h:115
TensorTypeData< Q >::scalar_type resultT
Definition complexfun.h:107
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition complexfun.h:108
Definition complexfun.h:202
Q resultT
Definition complexfun.h:203
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition complexfun.h:204
void serialize(Archive &ar)
Definition complexfun.h:211
Definition complexfun.h:226
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition complexfun.h:228
void serialize(Archive &ar)
Definition complexfun.h:235
std::complex< Q > resultT
Definition complexfun.h:227
Definition complexfun.h:154
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition complexfun.h:156
TensorTypeData< Q >::scalar_type resultT
Definition complexfun.h:155
void serialize(Archive &ar)
Definition complexfun.h:163
Definition complexfun.h:130
TensorTypeData< Q >::scalar_type resultT
Definition complexfun.h:131
void serialize(Archive &ar)
Definition complexfun.h:139
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition complexfun.h:132
#define BINARY_OPTIMIZED_ITERATOR(X, x, Y, y, exp)
Definition tensor_macros.h:701
static const std::size_t NDIM
Definition testpdiff.cc:42