MADNESS  version 0.9
Public Types | Public Member Functions | Public Attributes | List of all members
madness::FunctionImpl< T, NDIM >::add_op Struct Reference

add two functions f and g: result=alpha * f + beta * g More...

#include <funcimpl.h>

Public Types

typedef CoeffTracker< T, NDIMctT
 
typedef add_op this_type
 

Public Member Functions

bool randomize () const
 
 add_op ()
 
 add_op (const ctT &f, const ctT &g, const double alpha, const double beta)
 
std::pair< bool, coeffToperator() (const keyT &key) const
 if we are at the bottom of the trees, return the sum of the coeffs More...
 
this_type make_child (const keyT &child) const
 
Future< this_typeactivate () const
 retrieve the coefficients (parent coeffs might be remote) More...
 
this_type forward_ctor (const ctT &f1, const ctT &g1, const double alpha, const double beta)
 taskq-compatible ctor More...
 
template<typename Archive >
void serialize (const Archive &ar)
 

Public Attributes

ctT f
 tracking coeffs of first and second addend More...
 
ctT g
 
double alpha
 prefactor for f, g More...
 
double beta
 

Detailed Description

template<typename T, std::size_t NDIM>
struct madness::FunctionImpl< T, NDIM >::add_op

add two functions f and g: result=alpha * f + beta * g

Member Typedef Documentation

template<typename T, std::size_t NDIM>
typedef CoeffTracker<T,NDIM> madness::FunctionImpl< T, NDIM >::add_op::ctT
template<typename T, std::size_t NDIM>
typedef add_op madness::FunctionImpl< T, NDIM >::add_op::this_type

Constructor & Destructor Documentation

template<typename T, std::size_t NDIM>
madness::FunctionImpl< T, NDIM >::add_op::add_op ( )
inline
template<typename T, std::size_t NDIM>
madness::FunctionImpl< T, NDIM >::add_op::add_op ( const ctT f,
const ctT g,
const double  alpha,
const double  beta 
)
inline

Member Function Documentation

template<typename T, std::size_t NDIM>
Future<this_type> madness::FunctionImpl< T, NDIM >::add_op::activate ( ) const
inline
template<typename T, std::size_t NDIM>
this_type madness::FunctionImpl< T, NDIM >::add_op::forward_ctor ( const ctT f1,
const ctT g1,
const double  alpha,
const double  beta 
)
inline

taskq-compatible ctor

Referenced by madness::FunctionImpl< T, NDIM >::add_op::activate().

template<typename T, std::size_t NDIM>
this_type madness::FunctionImpl< T, NDIM >::add_op::make_child ( const keyT child) const
inline
template<typename T, std::size_t NDIM>
std::pair<bool,coeffT> madness::FunctionImpl< T, NDIM >::add_op::operator() ( const keyT key) const
inline
template<typename T, std::size_t NDIM>
bool madness::FunctionImpl< T, NDIM >::add_op::randomize ( ) const
inline
template<typename T, std::size_t NDIM>
template<typename Archive >
void madness::FunctionImpl< T, NDIM >::add_op::serialize ( const Archive &  ar)
inline

Member Data Documentation

template<typename T, std::size_t NDIM>
double madness::FunctionImpl< T, NDIM >::add_op::alpha

prefactor for f, g

Referenced by madness::FunctionImpl< T, NDIM >::add_op::make_child().

template<typename T, std::size_t NDIM>
double madness::FunctionImpl< T, NDIM >::add_op::beta
template<typename T, std::size_t NDIM>
ctT madness::FunctionImpl< T, NDIM >::add_op::f

tracking coeffs of first and second addend

template<typename T, std::size_t NDIM>
ctT madness::FunctionImpl< T, NDIM >::add_op::g

The documentation for this struct was generated from the following file: