MADNESS 0.10.1
madness::FunctorInterface< T, NDIM, opT > Class Template Reference

FunctorInterface interfaces a class or struct with an operator()(). More...

#include <function_interface.h>

Inheritance diagram for madness::FunctorInterface< T, NDIM, opT >:
Collaboration diagram for madness::FunctorInterface< T, NDIM, opT >:

Public Types

typedef GenTensor< T > coeffT
typedef Vector< double, NDIM > coordT
 Type of vector holding coordinates.
Public Types inherited from madness::FunctionFunctorInterface< T, NDIM >
typedef GenTensor< T > coeffT
typedef Key< NDIM > keyT
typedef T value_type

Public Member Functions

 FunctorInterface (const opT &op)
T operator() (const coordT &x) const
 You should implement this to return f(x).
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

opT op
Public Attributes inherited from madness::FunctionFunctorInterface< T, NDIM >
Level special_level_

Detailed Description

template<typename T, std::size_t NDIM, typename opT>
class madness::FunctorInterface< T, NDIM, opT >

FunctorInterface interfaces a class or struct with an operator()().

Member Typedef Documentation

◆ coeffT

template<typename T, std::size_t NDIM, typename opT>
typedef GenTensor<T> madness::FunctorInterface< T, NDIM, opT >::coeffT

◆ coordT

template<typename T, std::size_t NDIM, typename opT>
typedef Vector<double, NDIM> madness::FunctorInterface< T, NDIM, opT >::coordT

Type of vector holding coordinates.

Constructor & Destructor Documentation

◆ FunctorInterface()

template<typename T, std::size_t NDIM, typename opT>
madness::FunctorInterface< T, NDIM, opT >::FunctorInterface ( const opT & op)
inline

References op.

Member Function Documentation

◆ operator()()

template<typename T, std::size_t NDIM, typename opT>
T madness::FunctorInterface< T, NDIM, opT >::operator() ( const coordT & x) const
inlinevirtual

You should implement this to return f(x).

Implements madness::FunctionFunctorInterface< T, NDIM >.

References op.

Member Data Documentation

◆ op

template<typename T, std::size_t NDIM, typename opT>
opT madness::FunctorInterface< T, NDIM, opT >::op

Referenced by FunctorInterface(), and operator()().


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