MADNESS 0.10.1
madness::accumulate_op< T, NDIM > Struct Template Reference

inserts/accumulates coefficients into impl's tree More...

#include <funcimpl.h>

Public Types

typedef GenTensor< T > coeffT
typedef FunctionNode< T, NDIM > nodeT

Public Member Functions

 accumulate_op ()=default
 accumulate_op (const accumulate_op &other)=default
 accumulate_op (FunctionImpl< T, NDIM > *f)
void operator() (const Key< NDIM > &key, const coeffT &coeff, const bool &is_leaf) const
template<typename Archive>
void serialize (Archive &ar)

Public Attributes

FunctionImpl< T, NDIM > * impl

Detailed Description

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

inserts/accumulates coefficients into impl's tree

NOTE: will use buffer and will need consolidation after operation ended !! NOTE !!

Member Typedef Documentation

◆ coeffT

template<typename T, std::size_t NDIM>
typedef GenTensor<T> madness::accumulate_op< T, NDIM >::coeffT

◆ nodeT

template<typename T, std::size_t NDIM>
typedef FunctionNode<T,NDIM> madness::accumulate_op< T, NDIM >::nodeT

Constructor & Destructor Documentation

◆ accumulate_op() [1/3]

template<typename T, std::size_t NDIM>
madness::accumulate_op< T, NDIM >::accumulate_op ( )
default

Referenced by accumulate_op().

◆ accumulate_op() [2/3]

template<typename T, std::size_t NDIM>
madness::accumulate_op< T, NDIM >::accumulate_op ( FunctionImpl< T, NDIM > * f)
inline

References madness::f, and impl.

◆ accumulate_op() [3/3]

template<typename T, std::size_t NDIM>
madness::accumulate_op< T, NDIM >::accumulate_op ( const accumulate_op< T, NDIM > & other)
default

References accumulate_op().

Member Function Documentation

◆ operator()()

template<typename T, std::size_t NDIM>
void madness::accumulate_op< T, NDIM >::operator() ( const Key< NDIM > & key,
const coeffT & coeff,
const bool & is_leaf ) const
inline

◆ serialize()

template<typename T, std::size_t NDIM>
template<typename Archive>
void madness::accumulate_op< T, NDIM >::serialize ( Archive & ar)
inline

References impl.

Member Data Documentation

◆ impl

template<typename T, std::size_t NDIM>
FunctionImpl<T,NDIM>* madness::accumulate_op< T, NDIM >::impl

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