MADNESS 0.10.1
madness::LRFunctorBase< T, NDIM, LDIM > Struct Template Referenceabstract

the low-rank functor is what the LowRankFunction will represent More...

#include <lowrankfunction.h>

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

Public Member Functions

virtual ~LRFunctorBase ()
virtual Function< T, LDIM > inner (const Function< T, LDIM > &rhs, const particle< LDIM > p1, const particle< LDIM > p2) const
virtual std::vector< Function< T, LDIM > > inner (const std::vector< Function< T, LDIM > > &rhs, const particle< LDIM > p1, const particle< LDIM > p2) const =0
virtual Tensor< T >::scalar_type norm2 () const
virtual T operator() (const Vector< T, NDIM > &r) const =0
 evaluate the functor at a given point, e.g. for plotting
virtual void set_thresh (double thresh)
 set the MRA threshold on all internal functions and reproject to the new precision
virtual std::string type () const =0
 introspection
virtual World & world () const =0
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 T operator() (const Vector< double, NDIM > &x) const =0
 You should implement this to return f(x).
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

Friends

Function< T, LDIM > inner (const LRFunctorBase &functor, const Function< T, LDIM > &rhs, const particle< LDIM > p1, const particle< LDIM > p2)
std::vector< Function< T, LDIM > > inner (const LRFunctorBase &functor, const std::vector< Function< T, LDIM > > &rhs, const particle< LDIM > p1, const particle< LDIM > p2)

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_

Detailed Description

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
struct madness::LRFunctorBase< T, NDIM, LDIM >

the low-rank functor is what the LowRankFunction will represent

derive from this class : must implement in inner product may implement an operator()(const coord_nd&)

Constructor & Destructor Documentation

◆ ~LRFunctorBase()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
virtual madness::LRFunctorBase< T, NDIM, LDIM >::~LRFunctorBase ( )
inlinevirtual

Member Function Documentation

◆ inner() [1/2]

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

References inner().

◆ inner() [2/2]

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

◆ norm2()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
virtual Tensor< T >::scalar_type madness::LRFunctorBase< T, NDIM, LDIM >::norm2 ( ) const
inlinevirtual

◆ operator()()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
virtual T madness::LRFunctorBase< T, NDIM, LDIM >::operator() ( const Vector< T, NDIM > & r) const
pure virtual

evaluate the functor at a given point, e.g. for plotting

◆ set_thresh()

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

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

Reimplemented in madness::LRFunctorF12< T, NDIM, LDIM >, and madness::LRFunctorPure< T, NDIM, LDIM >.

References madness::FunctionDefaults< NDIM >::thresh.

◆ type()

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

◆ world()

◆ inner [1/2]

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
Function< T, LDIM > inner ( const LRFunctorBase< T, NDIM, LDIM > & functor,
const Function< T, LDIM > & rhs,
const particle< LDIM > p1,
const particle< LDIM > p2 )
friend

References inner().

◆ inner [2/2]

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

References inner().


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