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

#include <lowrankfunction.h>

Inheritance diagram for madness::LRFunctorF12< T, NDIM, LDIM >:
Collaboration diagram for madness::LRFunctorF12< T, NDIM, LDIM >:

Classes

class  MacroTaskLRFInner
 macrotask for \sum_ia premultiply_ia * f12 * postmultiply_ia * rhs, batched over rhs More...

Public Member Functions

 LRFunctorF12 (const std::shared_ptr< SeparatedConvolution< T, LDIM > > f12, const Function< T, LDIM > &a, const Function< T, LDIM > &b)
 delegate to the other ctor with vector arguments
 LRFunctorF12 (const std::shared_ptr< SeparatedConvolution< T, LDIM > > f12, const std::vector< Function< T, LDIM > > &a, const std::vector< Function< T, LDIM > > &b)
const std::vector< Function< T, LDIM > > & get_a () const
 access the a functions (particle 1 pre-multipliers)
const std::vector< Function< T, LDIM > > & get_b () const
 access the b functions (particle 2 pre-multipliers)
const std::shared_ptr< SeparatedConvolution< T, LDIM > > & get_f12 () const
 access the F12 operator
std::vector< Function< T, LDIM > > inner (const std::vector< Function< T, LDIM > > &rhs, const particle< LDIM > p1, const particle< LDIM > p2) const override
Tensor< T >::scalar_type norm2 () const override
T operator() (const Vector< double, NDIM > &r) const override
 You should implement this to return f(x).
void set_thresh (double thresh) override
 set the MRA threshold on all internal functions and reproject to the new precision
std::string type () const override
 introspection
World & world () const override
Public Member Functions inherited from madness::LRFunctorBase< T, NDIM, LDIM >
virtual ~LRFunctorBase ()
virtual Function< T, LDIM > inner (const Function< T, LDIM > &rhs, const particle< LDIM > p1, const particle< LDIM > p2) const
virtual T operator() (const Vector< T, NDIM > &r) const =0
 evaluate the functor at a given point, e.g. for plotting
Public Member Functions inherited from madness::FunctionFunctorInterface< T, NDIM >
 FunctionFunctorInterface ()
virtual ~FunctionFunctorInterface ()
virtual coeffT coeff (const keyT &) const
virtual void operator() (const Vector< double *, 1 > &, T *, int) const
virtual void operator() (const Vector< double *, 2 > &, T *, int) const
virtual void operator() (const Vector< double *, 3 > &, T *, int) const
virtual void operator() (const Vector< double *, 4 > &, T *, int) const
virtual void operator() (const Vector< double *, 5 > &, T *, int) const
virtual void operator() (const Vector< double *, 6 > &, T *, int) const
virtual bool provides_coeff () const
 does this functor directly provide sum coefficients? or only function values?
virtual bool screened (const Vector< double, NDIM > &, const Vector< double, NDIM > &) const
 Can we screen this function based on the bounding box information?
void set_length_scale (double lo)
 adapt the special level to resolve the smallest length scale
virtual Level special_level () const
 Override this to change the minimum level of refinement at special points (default is 6).
virtual std::vector< Vector< double, NDIM > > special_points () const
 Override this to return list of special points to be refined more deeply.
virtual bool supports_vectorized () const
 Does the interface support a vectorized operator()?
virtual coeffT values (const keyT &, const Tensor< double > &) const

Private Attributes

std::vector< Function< T, LDIM > > a
std::vector< Function< T, LDIM > > b
 the lo-dim functions
std::shared_ptr< SeparatedConvolution< T, LDIM > > f12
 a two-particle function

Additional Inherited Members

Public Types inherited from madness::FunctionFunctorInterface< T, NDIM >
typedef GenTensor< T > coeffT
typedef Key< NDIM > keyT
typedef T value_type
Public Attributes inherited from madness::FunctionFunctorInterface< T, NDIM >
Level special_level_

Constructor & Destructor Documentation

◆ LRFunctorF12() [1/2]

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
madness::LRFunctorF12< T, NDIM, LDIM >::LRFunctorF12 ( const std::shared_ptr< SeparatedConvolution< T, LDIM > > f12,
const std::vector< Function< T, LDIM > > & a,
const std::vector< Function< T, LDIM > > & b )
inline

References a, b, f12, and MADNESS_CHECK_THROW.

Referenced by LRFunctorF12().

◆ LRFunctorF12() [2/2]

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
madness::LRFunctorF12< T, NDIM, LDIM >::LRFunctorF12 ( const std::shared_ptr< SeparatedConvolution< T, LDIM > > f12,
const Function< T, LDIM > & a,
const Function< T, LDIM > & b )
inline

delegate to the other ctor with vector arguments

References LRFunctorF12(), a, b, and f12.

Member Function Documentation

◆ get_a()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
const std::vector< Function< T, LDIM > > & madness::LRFunctorF12< T, NDIM, LDIM >::get_a ( ) const
inline

access the a functions (particle 1 pre-multipliers)

References a.

◆ get_b()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
const std::vector< Function< T, LDIM > > & madness::LRFunctorF12< T, NDIM, LDIM >::get_b ( ) const
inline

access the b functions (particle 2 pre-multipliers)

References b.

◆ get_f12()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
const std::shared_ptr< SeparatedConvolution< T, LDIM > > & madness::LRFunctorF12< T, NDIM, LDIM >::get_f12 ( ) const
inline

access the F12 operator

References f12.

Referenced by madness::LowRankFunctionFactory< T, NDIM, LDIM >::build_taylor_y().

◆ inner()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
std::vector< Function< T, LDIM > > madness::LRFunctorF12< T, NDIM, LDIM >::inner ( const std::vector< Function< T, LDIM > > & rhs,
const particle< LDIM > p1,
const particle< LDIM > p2 ) const
inlineoverridevirtual

◆ norm2()

◆ operator()()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
T madness::LRFunctorF12< T, NDIM, LDIM >::operator() ( const Vector< double, NDIM > & x) const
inlineoverridevirtual

◆ set_thresh()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
void madness::LRFunctorF12< T, NDIM, LDIM >::set_thresh ( double thresh)
inlineoverridevirtual

set the MRA threshold on all internal functions and reproject to the new precision

Reimplemented from madness::LRFunctorBase< T, NDIM, LDIM >.

References a, b, madness::f, and madness::FunctionDefaults< NDIM >::thresh.

◆ type()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
std::string madness::LRFunctorF12< T, NDIM, LDIM >::type ( ) const
inlineoverridevirtual

introspection

Implements madness::LRFunctorBase< T, NDIM, LDIM >.

◆ world()

Member Data Documentation

◆ a

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
std::vector<Function<T,LDIM> > madness::LRFunctorF12< T, NDIM, LDIM >::a
private

◆ b

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
std::vector<Function<T,LDIM> > madness::LRFunctorF12< T, NDIM, LDIM >::b
private

◆ f12

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
std::shared_ptr<SeparatedConvolution<T,LDIM> > madness::LRFunctorF12< T, NDIM, LDIM >::f12
private

a two-particle function

Referenced by LRFunctorF12(), LRFunctorF12(), get_f12(), inner(), norm2(), operator()(), and world().


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