MADNESS  0.10.1
Public Types | Public Member Functions | Public Attributes | List of all members
madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R > Struct Template Reference

merge the coefficent boxes of this into other's tree More...

#include <funcimpl.h>

Collaboration diagram for madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >:
Collaboration graph
[legend]

Public Types

typedef Range< typename dcT::const_iteratorrangeT
 

Public Member Functions

 do_merge_trees ()
 
 do_merge_trees (const T alpha, const R beta, FunctionImpl< Q, NDIM > &other)
 
bool operator() (typename rangeT::iterator &it) const
 return the norm of the difference of this node and its "mirror" node More...
 
template<typename Archive >
void serialize (const Archive &ar)
 

Public Attributes

T alpha
 
R beta
 
FunctionImpl< Q, NDIM > * other
 

Detailed Description

template<typename T, std::size_t NDIM>
template<typename Q, typename R>
struct madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >

merge the coefficent boxes of this into other's tree

no comm, and the tree should be in an consistent state by virtue of FunctionNode::gaxpy_inplace

Member Typedef Documentation

◆ rangeT

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
typedef Range<typename dcT::const_iterator> madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::rangeT

Constructor & Destructor Documentation

◆ do_merge_trees() [1/2]

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::do_merge_trees ( )
inline

◆ do_merge_trees() [2/2]

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::do_merge_trees ( const T  alpha,
const R  beta,
FunctionImpl< Q, NDIM > &  other 
)
inline

Member Function Documentation

◆ operator()()

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
bool madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::operator() ( typename rangeT::iterator it) const
inline

◆ serialize()

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
template<typename Archive >
void madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::serialize ( const Archive &  ar)
inline

References MADNESS_EXCEPTION.

Member Data Documentation

◆ alpha

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
T madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::alpha

◆ beta

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
R madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::beta

◆ other

template<typename T , std::size_t NDIM>
template<typename Q , typename R >
FunctionImpl<Q,NDIM>* madness::FunctionImpl< T, NDIM >::do_merge_trees< Q, R >::other

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