|
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 |
|
inline |
retrieve the coefficients (parent coeffs might be remote)
References madness::FunctionImpl< T, NDIM >::add_op::alpha, madness::FunctionImpl< T, NDIM >::add_op::beta, madness::FunctionImpl< T, NDIM >::add_op::f, f1, madness::FunctionImpl< T, NDIM >::add_op::forward_ctor(), madness::FunctionImpl< T, NDIM >::add_op::g, g1(), and madness::detail::wrap_mem_fn().
|
inline |
taskq-compatible ctor
References madness::FunctionImpl< T, NDIM >::add_op::alpha, madness::FunctionImpl< T, NDIM >::add_op::beta, f1, and g1().
Referenced by madness::FunctionImpl< T, NDIM >::add_op::activate().
|
inline |
if we are at the bottom of the trees, return the sum of the coeffs
References madness::FunctionImpl< T, NDIM >::add_op::alpha, madness::FunctionImpl< T, NDIM >::add_op::beta, madness::copy(), madness::FunctionImpl< T, NDIM >::add_op::f, madness::FunctionImpl< T, NDIM >::add_op::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 madness::FunctionImpl< T, NDIM >::add_op::activate(), madness::FunctionImpl< T, NDIM >::add_op::forward_ctor(), madness::FunctionImpl< T, NDIM >::add_op::make_child(), madness::FunctionImpl< T, NDIM >::add_op::operator()(), and madness::FunctionImpl< T, NDIM >::add_op::serialize().
| double madness::FunctionImpl< T, NDIM >::add_op::beta |
| ctT madness::FunctionImpl< T, NDIM >::add_op::f |
tracking coeffs of first and second addend
Referenced by madness::FunctionImpl< T, NDIM >::add_op::activate(), madness::FunctionImpl< T, NDIM >::add_op::make_child(), madness::FunctionImpl< T, NDIM >::add_op::operator()(), and madness::FunctionImpl< T, NDIM >::add_op::serialize().
| ctT madness::FunctionImpl< T, NDIM >::add_op::g |