|
MADNESS 0.10.1
|
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 | |
| add_op ()=default | |
| add_op (const ctT &f, const ctT &g, const double alpha, const double beta) | |
| Future< this_type > | activate () const |
| retrieve the coefficients (parent coeffs might be remote) | |
| this_type | forward_ctor (const ctT &f1, const ctT &g1, const double alpha, const double beta) |
| taskq-compatible ctor | |
| this_type | make_child (const keyT &child) const |
| std::pair< bool, coeffT > | operator() (const keyT &key) const |
| if we are at the bottom of the trees, return the sum of the coeffs | |
| bool | randomize () const |
| template<typename Archive> | |
| void | serialize (const Archive &ar) |
Public Attributes | |
| double | alpha |
| prefactor for f, g | |
| double | beta |
| ctT | f |
| tracking coeffs of first and second addend | |
| ctT | g |
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 |
|
default |
|
inline |
retrieve the coefficients (parent coeffs might be remote)
References alpha, beta, f, f1, forward_ctor(), g, g1(), and madness::detail::wrap_mem_fn().
|
inline |
|
inline |
if we are at the bottom of the trees, return the sum of the coeffs
References alpha, beta, madness::copy(), f, g, madness::GenTensor< T >::gaxpy(), and madness::GenTensor< T >::reduce_rank().
|
inline |
|
inline |
| double madness::FunctionImpl< T, NDIM >::add_op::alpha |
prefactor for f, g
Referenced by add_op(), activate(), forward_ctor(), make_child(), operator()(), and serialize().
| double madness::FunctionImpl< T, NDIM >::add_op::beta |
Referenced by add_op(), activate(), forward_ctor(), make_child(), operator()(), and serialize().
| ctT madness::FunctionImpl< T, NDIM >::add_op::f |
tracking coeffs of first and second addend
Referenced by add_op(), activate(), make_child(), operator()(), and serialize().
| ctT madness::FunctionImpl< T, NDIM >::add_op::g |
Referenced by add_op(), activate(), make_child(), operator()(), and serialize().