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 () | |
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) More... | |
this_type | forward_ctor (const ctT &f1, const ctT &g1, const double alpha, const double beta) |
taskq-compatible ctor More... | |
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 More... | |
bool | randomize () const |
template<typename Archive > | |
void | serialize (const Archive &ar) |
Public Attributes | |
double | alpha |
prefactor for f, g More... | |
double | beta |
ctT | f |
tracking coeffs of first and second addend More... | |
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 |
|
inline |
|
inline |
|
inline |
retrieve the coefficients (parent coeffs might be remote)
References madness::CoeffTracker< T, NDIM >::activate(), madness::WorldTaskQueue::add(), 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, madness::CoeffTracker< T, NDIM >::get_impl(), madness::World::taskq, madness::FunctionImpl< T, NDIM >::world, 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, and f1.
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::CoeffTracker< T, NDIM >::coeff(), madness::copy(), madness::FunctionImpl< T, NDIM >::add_op::f, madness::FunctionImpl< T, NDIM >::add_op::g, madness::GenTensor< T >::gaxpy(), 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 |
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 |