Medusa  1.1
Coordinate Free Mehless Method implementation
Multiquadric_fwd.hpp
Go to the documentation of this file.
1 #ifndef MEDUSA_BITS_APPROXIMATIONS_MULTIQUADRIC_FWD_HPP_
2 #define MEDUSA_BITS_APPROXIMATIONS_MULTIQUADRIC_FWD_HPP_
3 
11 #include <medusa/Config.hpp>
12 #include <iosfwd>
13 #include "Operators_fwd.hpp"
14 
15 namespace mm {
16 
28 template <class scal_t>
29 class Multiquadric {
30  public:
31  typedef scal_t scalar_t;
32 
33  private:
35 
36  public:
39 
41  scalar_t shape() const { return shape_; }
42 
45 
52  inline scalar_t operator()(scalar_t r2, int derivative) const;
53 
59  template <int dimension>
60  inline scalar_t operator()(scalar_t r2, Lap<dimension> lap) const;
61 
63  inline scalar_t operator()(scalar_t r2) const;
64 
66  template <typename V>
67  friend std::ostream& operator<<(std::ostream& os, const Multiquadric<V>& m);
68 };
69 
70 } // namespace mm
71 
72 #endif // MEDUSA_BITS_APPROXIMATIONS_MULTIQUADRIC_FWD_HPP_
mm
Root namespace for the whole library.
Definition: Gaussian.hpp:14
scalar_t
Scalar scalar_t
Type of the elements, alias of Scalar.
Definition: MatrixBaseAddons.hpp:16
mm::Multiquadric::shape
scalar_t shape() const
Returns shape parameter.
Definition: Multiquadric_fwd.hpp:41
mm::sh::lap
static const shape_flags lap
Indicates to calculate laplace shapes.
Definition: shape_flags.hpp:24
mm::Multiquadric::setShape
void setShape(scalar_t shape)
Sets shape parameter to a new value.
Definition: Multiquadric_fwd.hpp:44
mm::Multiquadric::scalar_t
scal_t scalar_t
Scalar type used for computations.
Definition: Multiquadric_fwd.hpp:31
Config.hpp
Operators_fwd.hpp
mm::Multiquadric::operator()
scalar_t operator()(scalar_t r2, int derivative) const
Evaluate derivative of this RBF wrt.
Definition: Multiquadric.hpp:22
mm::Multiquadric
Multiquadric Radial Basis Function.
Definition: Multiquadric_fwd.hpp:29
mm::Multiquadric::Multiquadric
Multiquadric(scalar_t shape=1.0)
Creates a MultiQuadratic with shape parameter shape.
Definition: Multiquadric.hpp:17
mm::Multiquadric::shape_
scalar_t shape_
Shape parameter.
Definition: Multiquadric_fwd.hpp:34
mm::Lap
Represents the Laplacian operator.
Definition: Monomials_fwd.hpp:20
mm::Multiquadric::operator<<
friend std::ostream & operator<<(std::ostream &os, const Multiquadric< V > &m)
Output basic information about given basis function.