48 double abs(
double x) {
return fabs(x);}
52 double real(
double x) {
return x;}
56 double imag(
double x) {
return 0.0;}
104 template <
typename Q,
int NDIM>
114 template <
typename Archive>
120 template<
typename Q,
int NDIM>
128 template <
typename Q,
int NDIM>
138 template <
typename Archive>
144 template<
typename Q,
int NDIM>
152 template <
typename Q,
int NDIM>
162 template <
typename Archive>
168 template<
typename Q,
int NDIM>
176 template <
typename Q,
int NDIM>
186 template <
typename Archive>
192 template<
typename Q,
int NDIM>
200 template <
typename Q,
int NDIM>
210 template <
typename Archive>
224 template <
typename Q,
int NDIM>
234 template <
typename Archive>
240 template <
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.
File holds all helper structures necessary for the CC_Operator and CC2 class.
Definition: DFParameters.h:10
Tensor< Q > tensor_abs(const Tensor< std::complex< Q > > &c)
Definition: complexfun.h:95
double abs(double x)
Definition: complexfun.h:48
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< 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
Function< typename TensorTypeData< Q >::scalar_type, NDIM > abs_square(const Function< Q, NDIM > &func)
Definition: complexfun.h:121
Tensor< std::complex< Q > > tensor_real2complex(const Tensor< Q > &r)
Definition: complexfun.h:65
Tensor< Q > tensor_ximag(const Tensor< std::complex< Q > > &c)
Definition: complexfun.h:85
Function< std::complex< Q >, NDIM > function_real2complex(const Function< Q, NDIM > &r)
Definition: complexfun.h:241
std::shared_ptr< FunctionFunctorInterface< double, 3 > > func(new opT(g))
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_xreal(const Tensor< std::complex< Q > > &c)
Definition: complexfun.h:75
double Q(double a)
Definition: relops.cc:20
static const double c
Definition: relops.cc:10
Definition: complexfun.h:178
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:180
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:179
void serialize(Archive &ar)
Definition: complexfun.h:187
Definition: complexfun.h:106
void serialize(Archive &ar)
Definition: complexfun.h:115
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:108
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:107
Definition: complexfun.h:202
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:204
Q resultT
Definition: complexfun.h:203
void serialize(Archive &ar)
Definition: complexfun.h:211
Definition: complexfun.h:226
void serialize(Archive &ar)
Definition: complexfun.h:235
std::complex< Q > resultT
Definition: complexfun.h:227
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:228
Definition: complexfun.h:154
TensorTypeData< Q >::scalar_type resultT
Definition: complexfun.h:155
void serialize(Archive &ar)
Definition: complexfun.h:163
Tensor< resultT > operator()(const Key< NDIM > &key, const Tensor< Q > &t) const
Definition: complexfun.h:156
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
void d()
Definition: test_sig.cc:79
static const std::size_t NDIM
Definition: testpdiff.cc:42