|
MADNESS 0.10.1
|
Project a general 3D polynomial to the MRA Grid. More...
#include <GuessFactory.h>


Public Member Functions | |
| PolynomialFunctor (const int &axis) | |
| simple xyz moments constructor | |
| PolynomialFunctor (const std::string input, const double &damp_width, const Tensor< double > &c) | |
| PolynomialFunctor (const std::string input, const double &damp_width=0.0, const coord_3d &c=coord_3d()) | |
| std::string | axis_to_string (const int &axis) const |
| convert a given axis to the appropriate input string | |
| double | compute_value (const coord_3d &r) const |
| create the value of the polynomial according to the data in the data_ structure | |
| std::vector< std::vector< double > > | give_data () |
| double | operator() (const coord_3d &rr) const override |
| construction by coordinates | |
| std::vector< std::vector< double > > | read_string (const std::string string) const |
| void | test () |
| Public Member Functions inherited from madness::FunctionFunctorInterface< double, 3 > | |
| FunctionFunctorInterface () | |
| virtual | ~FunctionFunctorInterface () |
| virtual coeffT | coeff (const keyT &) const |
| virtual void | operator() (const Vector< double *, 1 > &, double *, int) const |
| virtual void | operator() (const Vector< double *, 2 > &, double *, int) const |
| virtual void | operator() (const Vector< double *, 3 > &, double *, int) const |
| virtual void | operator() (const Vector< double *, 4 > &, double *, int) const |
| virtual void | operator() (const Vector< double *, 5 > &, double *, int) const |
| virtual void | operator() (const Vector< double *, 6 > &, double *, int) const |
| virtual double | 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 |
Protected Attributes | |
| coord_3d | center =coord_3d() |
| GaussFunctor | dampf |
| damping function | |
| const std::vector< std::vector< double > > | data_ |
| const std::string | input_string_ |
Additional Inherited Members | |
| Public Types inherited from madness::FunctionFunctorInterface< double, 3 > | |
| typedef GenTensor< double > | coeffT |
| typedef Key< NDIM > | keyT |
| typedef double | value_type |
| Public Attributes inherited from madness::FunctionFunctorInterface< double, 3 > | |
| Level | special_level_ |
Project a general 3D polynomial to the MRA Grid.
|
inline |
simple xyz moments constructor
References axis, axis_to_string(), dampf, data_, input_string_, and read_string().
|
inline |
References c, center, dampf, data_, input_string_, and read_string().
|
inline |
References c, center, dampf, data_, input_string_, read_string(), and madness::guessfactory::tensor_to_coord().
|
inline |
convert a given axis to the appropriate input string
References axis, and MADNESS_EXCEPTION.
Referenced by PolynomialFunctor().
| double madness::guessfactory::PolynomialFunctor::compute_value | ( | const coord_3d & | r | ) | const |
create the value of the polynomial according to the data in the data_ structure
References data_, MADNESS_EXCEPTION, and pow().
Referenced by operator()().
|
inline |
References data_.
|
override |
construction by coordinates
References center, compute_value(), and dampf.
| std::vector< std::vector< double > > madness::guessfactory::PolynomialFunctor::read_string | ( | const std::string | string | ) | const |
References madness::name(), madness::read_data(), and madness::vector_factory().
Referenced by PolynomialFunctor(), PolynomialFunctor(), and PolynomialFunctor().
| void madness::guessfactory::PolynomialFunctor::test | ( | ) |
References data_, and input_string_.
Referenced by PolynomialFunctor(), PolynomialFunctor(), and operator()().
|
protected |
damping function
Referenced by PolynomialFunctor(), PolynomialFunctor(), PolynomialFunctor(), and operator()().
|
protected |
The data for the construction of the polynomial chain every entry of data_ is vector containing the threee exponents and the coefficient of a monomial dx^ay^bz^c , data_[i] = (a,b,c,d)
Referenced by PolynomialFunctor(), PolynomialFunctor(), PolynomialFunctor(), compute_value(), madness::guessfactory::PolynomialTrigonometricsFunctor::compute_value(), give_data(), and test().
|
protected |
Referenced by PolynomialFunctor(), PolynomialFunctor(), PolynomialFunctor(), and test().