MADNESS  version 0.9
Public Types | Public Member Functions | Public Attributes | List of all members
madness::op_leaf_op< T, NDIM, opT > Struct Template Reference

#include <funcimpl.h>

Collaboration diagram for madness::op_leaf_op< T, NDIM, opT >:
Collaboration graph
[legend]

Public Types

typedef FunctionImpl< T, NDIMimplT
 

Public Member Functions

bool do_error_leaf_op () const
 
 op_leaf_op ()
 
 op_leaf_op (const opT *op, const implT *f)
 
bool operator() (const Key< NDIM > &key) const
 pre-determination: we can't know if this will be a leaf node before we got the final coeffs More...
 
bool operator() (const Key< NDIM > &key, const GenTensor< T > &coeff) const
 post-determination: return true if operator and coefficient norms are small More...
 
bool operator() (const Key< NDIM > &key, const double &cnorm) const
 post-determination: return true if operator and coefficient norms are small More...
 
template<typename Archive >
void serialize (Archive &ar)
 

Public Attributes

const opT * op
 the convolution operator More...
 
const implTf
 the source or result function, needed for truncate_tol More...
 

Detailed Description

template<typename T, size_t NDIM, typename opT>
struct madness::op_leaf_op< T, NDIM, opT >

returns true if the result of the convolution operator op with some provided coefficients will be small

Member Typedef Documentation

template<typename T, size_t NDIM, typename opT>
typedef FunctionImpl<T,NDIM> madness::op_leaf_op< T, NDIM, opT >::implT

Constructor & Destructor Documentation

template<typename T, size_t NDIM, typename opT>
madness::op_leaf_op< T, NDIM, opT >::op_leaf_op ( )
inline
template<typename T, size_t NDIM, typename opT>
madness::op_leaf_op< T, NDIM, opT >::op_leaf_op ( const opT *  op,
const implT f 
)
inline

Member Function Documentation

template<typename T, size_t NDIM, typename opT>
bool madness::op_leaf_op< T, NDIM, opT >::do_error_leaf_op ( ) const
inline
template<typename T, size_t NDIM, typename opT>
bool madness::op_leaf_op< T, NDIM, opT >::operator() ( const Key< NDIM > &  key) const
inline

pre-determination: we can't know if this will be a leaf node before we got the final coeffs

Referenced by madness::op_leaf_op< T, NDIM, opT >::operator()().

template<typename T, size_t NDIM, typename opT>
bool madness::op_leaf_op< T, NDIM, opT >::operator() ( const Key< NDIM > &  key,
const GenTensor< T > &  coeff 
) const
inline

post-determination: return true if operator and coefficient norms are small

References madness::Key< NDIM >::level(), and madness::op_leaf_op< T, NDIM, opT >::operator()().

template<typename T, size_t NDIM, typename opT>
bool madness::op_leaf_op< T, NDIM, opT >::operator() ( const Key< NDIM > &  key,
const double &  cnorm 
) const
inline

post-determination: return true if operator and coefficient norms are small

References madness::FunctionImpl< T, NDIM >::get_thresh(), madness::Key< NDIM >::level(), madness::norm(), thresh, and madness::FunctionImpl< T, NDIM >::truncate_tol().

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

Member Data Documentation

template<typename T, size_t NDIM, typename opT>
const implT* madness::op_leaf_op< T, NDIM, opT >::f

the source or result function, needed for truncate_tol

Referenced by madness::op_leaf_op< T, NDIM, opT >::serialize().

template<typename T, size_t NDIM, typename opT>
const opT* madness::op_leaf_op< T, NDIM, opT >::op

the convolution operator


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