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

#include <lowrankfunction.h>

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

Public Member Functions

 LRFunctorPure ()=default
 LRFunctorPure (const Function< T, NDIM > &f)
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
 evaluate the functor at a given point, e.g. for plotting
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

Public Attributes

Function< T, NDIM > f
 a hi-dim function
Public Attributes inherited from madness::FunctionFunctorInterface< T, NDIM >
Level special_level_

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ LRFunctorPure() [1/2]

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
madness::LRFunctorPure< T, NDIM, LDIM >::LRFunctorPure ( )
default

◆ LRFunctorPure() [2/2]

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
madness::LRFunctorPure< T, NDIM, LDIM >::LRFunctorPure ( const Function< T, NDIM > & f)
inlineexplicit

References f.

Member Function Documentation

◆ inner()

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

◆ norm2()

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

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

References f.

◆ operator()()

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

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

Implements madness::FunctionFunctorInterface< T, NDIM >.

References f.

◆ set_thresh()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
void madness::LRFunctorPure< 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 f, and madness::FunctionDefaults< NDIM >::thresh.

◆ type()

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

introspection

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

◆ world()

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
World & madness::LRFunctorPure< T, NDIM, LDIM >::world ( ) const
inlinenodiscardoverridevirtual

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

References f.

Member Data Documentation

◆ f

template<typename T, std::size_t NDIM, std::size_t LDIM = NDIM/2>
Function<T, NDIM> madness::LRFunctorPure< T, NDIM, LDIM >::f

a hi-dim function

Referenced by LRFunctorPure(), inner(), norm2(), set_thresh(), and world().


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