| MADNESS
    version 0.9
    | 
add two functions f and g: result=alpha * f + beta * g More...
#include <funcimpl.h>
| Public Types | |
| typedef CoeffTracker< T, NDIM > | ctT | 
| 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, coeffT > | operator() (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_type > | activate () 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 | 
add two functions f and g: result=alpha * f + beta * g
| typedef CoeffTracker<T,NDIM> madness::FunctionImpl< T, NDIM >::add_op::ctT | 
| typedef add_op madness::FunctionImpl< T, NDIM >::add_op::this_type | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
retrieve the coefficients (parent coeffs might be remote)
References madness::CoeffTracker< T, NDIM >::activate(), madness::WorldTaskQueue::add(), std::tr1::f1, madness::FunctionImpl< T, NDIM >::add_op::forward_ctor(), madness::CoeffTracker< T, NDIM >::get_impl(), madness::World::taskq, and madness::FunctionImpl< T, NDIM >::world.
| 
 | inline | 
taskq-compatible ctor
Referenced by madness::FunctionImpl< T, NDIM >::add_op::activate().
| 
 | inline | 
| 
 | inline | 
if we are at the bottom of the trees, return the sum of the coeffs
References madness::CoeffTracker< T, NDIM >::coeff(), madness::copy(), madness::CoeffTracker< T, NDIM >::get_impl(), madness::FunctionImpl< T, NDIM >::get_tensor_args(), madness::CoeffTracker< T, NDIM >::is_leaf(), madness::CoeffTracker< T, NDIM >::key(), madness::FunctionImpl< T, NDIM >::parent_to_child(), madness::GenTensor< T >::reduce_rank(), and madness::TensorArgs::thresh.
| 
 | inline | 
| 
 | inline | 
References madness::FunctionImpl< T, NDIM >::add_op::beta.
| double madness::FunctionImpl< T, NDIM >::add_op::alpha | 
prefactor for f, g
Referenced by madness::FunctionImpl< T, NDIM >::add_op::make_child().
| double madness::FunctionImpl< T, NDIM >::add_op::beta | 
| ctT madness::FunctionImpl< T, NDIM >::add_op::f | 
tracking coeffs of first and second addend
| ctT madness::FunctionImpl< T, NDIM >::add_op::g | 
 1.8.8
 1.8.8