MADNESS 0.10.1
Constant< T, NDIM > Class Template Reference
Inheritance diagram for Constant< T, NDIM >:
Collaboration diagram for Constant< T, NDIM >:

Public Member Functions

 Constant (T v)
T operator() (const Vector< double, NDIM > &) 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

T value
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

◆ Constant()

template<typename T, std::size_t NDIM>
Constant< T, NDIM >::Constant ( T v)
inlineexplicit

References v, and value.

Member Function Documentation

◆ operator()()

template<typename T, std::size_t NDIM>
T Constant< T, NDIM >::operator() ( const Vector< double, NDIM > & x) const
inlinevirtual

You should implement this to return f(x).

Implements madness::FunctionFunctorInterface< T, NDIM >.

References value.

Member Data Documentation

◆ value

template<typename T, std::size_t NDIM>
T Constant< T, NDIM >::value

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


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