|
Medusa
1.1
Coordinate Free Mehless Method implementation
|
|
Go to the documentation of this file. 1 #ifndef MEDUSA_BITS_APPROXIMATIONS_RBFBASIS_FWD_HPP_
2 #define MEDUSA_BITS_APPROXIMATIONS_RBFBASIS_FWD_HPP_
29 template <
class RBFType,
class vec_t>
31 static_assert(std::is_same<typename vec_t::scalar_t, typename RBFType::scalar_t>::value,
32 "Basis and underlying RBF must have the same scalar type.");
34 typedef RBFType
rbf_t;
86 template <
typename operator_t>
88 const std::vector<vector_t>& support,
scalar_t scale = 1)
const;
91 const std::vector<vector_t>& support,
scalar_t scale = 1)
const;
94 const std::vector<vector_t>& support,
scalar_t scale = 1)
const;
97 const std::vector<vector_t>& support,
scalar_t scale = 1)
const;
100 scalar_t evalAt0(
int index,
const std::vector<vector_t>& support)
const;
114 template <
typename operator_t>
117 return op.applyAt0(*
this, index, support, scale);
130 template <
typename V,
typename R>
137 template <
typename S>
class Gaussian;
155 #endif // MEDUSA_BITS_APPROXIMATIONS_RBFBASIS_FWD_HPP_
Root namespace for the whole library.
Scalar scalar_t
Type of the elements, alias of Scalar.
vec_t vector_t
Vector type.
static const shape_flags lap
Indicates to calculate laplace shapes.
Inverse Multiquadric Radial Basis Function.
RBFType rbf_t
Radial basis function type.
@ dim
Number of elements of this matrix.
@ dim
Dimensionality of the function domain.
scalar_t eval(int index, const vector_t &point, const std::vector< vector_t > &support) const
Evaluates index-th RBF's at point.
scalar_t evalAt0(int index, const std::vector< vector_t > &support) const
Evaluate index-th function at zero.
vector_t::scalar_t scalar_t
Scalar type.
scalar_t evalOp(int index, const vector_t &point, operator_t op, const std::vector< vector_t > &support, scalar_t scale=1) const
Apply an operator at a given point.
Represents a second derivative wrt. var1 and var2.
Multiquadric Radial Basis Function.
Polyharmonic Radial Basis Function of odd order.
rbf_t & rbf()
Returns modifiable underlying RBF object.
Represents a basis of Radial Basis Functions over a local neighbourhood.
Represents the Laplacian operator.
RBFBasis(int basis_size, const rbf_t &rbf)
Construct a basis of basis_size with given RBF.
Represents a first derivative wrt. var.
int size() const
Returns basis size.
RBFBasis(int basis_size)
Construct a basis of basis_size with default construction of RBF.
const rbf_t & rbf() const
Returns underlying RBF object.
scalar_t evalOpAt0(int index, const operator_t&op, const std::vector< vector_t > &support, scalar_t scale=1) const
Evaluate general operator op at zero.
friend std::ostream & operator<<(std::ostream &os, const RBFBasis< V, R > &m)
Output basic info about given basis.