22template <
typename _Scalar>
59template <
typename _Scalar>
84template <
typename _Scalar,
int m,
int n>
95 PONCA_MULTIARCH
inline Scalar df (
const Scalar& _x)
const {
return pow(m*n*_x, n-1) * pow(pow(_x, n) -1, m-1); }
97 PONCA_MULTIARCH
inline Scalar ddf(
const Scalar& _x)
const {
return (m-1)*m*n*n*pow(_x, 2*n-2)*pow(pow(_x, n)-1, m-2) + m*(n-1)*n*pow(_x, n-2) * pow(pow(_x, n)-1, m-1); }
112template <
typename _Scalar>
123 return v * v * v * v * ((
Scalar(4.) * _x) +
Scalar(1.));
128 return Scalar(20.) * _x * v * v * v;
150template <
typename _Scalar>
160 return Scalar(1.) / (_x * _x);
164 return Scalar(-2.) / (_x * _x * _x);
168 return Scalar(6.) / (_x * _x * _x * _x);
186template <
typename _Scalar>
210 Scalar cmvpow = pow(_x,mvpow);
Compact Exponential WeightKernel defined in .
Scalar f(const Scalar &_x) const
Defines the smooth weighting function .
static constexpr bool isDValid
df is defined and valid on the definition interval
static constexpr bool isDDValid
ddf is not defined and valid on the definition interval
Scalar ddf(const Scalar &_x) const
Defines the smooth second order weighting function .
_Scalar Scalar
Scalar type defined outside the class.
Scalar df(const Scalar &_x) const
Defines the smooth first order weighting function .
Concept::WeightKernelConcept returning a constant value.
static constexpr bool isDDValid
ddf is defined and valid on the definition interval
Scalar df(const Scalar &) const
Return .
Scalar ddf(const Scalar &) const
Return .
Scalar f(const Scalar &) const
Return the constant value.
static constexpr bool isDValid
df is defined and valid on the definition interval
void setValue(const Scalar &_value)
Set the returned value.
_Scalar Scalar
Scalar type defined outside the class.
ConstantWeightKernel(const Scalar &_value=Scalar(1.))
Default constructor that could be used to set the returned value.
Generalised version of SmoothWeightKernel with arbitrary degrees : .
static constexpr bool isDValid
df is defined and valid on the definition interval
_Scalar Scalar
Scalar type defined outside the class.
Scalar df(const Scalar &_x) const
Defines the smooth first order weighting function .
Scalar ddf(const Scalar &_x) const
Defines the smooth second order weighting function .
static constexpr bool isDDValid
ddf is defined and valid on the definition interval
Scalar f(const Scalar &_x) const
Defines the smooth weighting function .
Singular WeightKernel defined in .
Scalar ddf(const Scalar &_x) const
Defines the Singular second order weighting function .
static constexpr bool isDDValid
ddf is defined and valid on the definition interval
Scalar df(const Scalar &_x) const
Defines the Singular first order weighting function .
Scalar f(const Scalar &_x) const
Defines the Singular weighting function .
_Scalar Scalar
Scalar type defined outside the class.
static constexpr bool isDValid
df is defined and valid on the definition interval
Smooth WeightKernel of 2nd degree, defined in Special case of PolynomialSmoothWeightKernel<Scalar,...
Scalar df(const Scalar &_x) const
Defines the smooth first order weighting function .
Scalar f(const Scalar &_x) const
Defines the smooth weighting function .
static constexpr bool isDValid
df is defined and valid on the definition interval
static constexpr bool isDDValid
ddf is defined and valid on the definition interval
Scalar ddf(const Scalar &_x) const
Defines the smooth second order weighting function .
_Scalar Scalar
Scalar type defined outside the class.
Wendland WeightKernel defined in .
_Scalar Scalar
Scalar type defined outside the class.
static constexpr bool isDValid
df is defined and valid on the definition interval
static constexpr bool isDDValid
ddf is defined and valid on the definition interval
Scalar df(const Scalar &_x) const
Defines the Wendland first order weighting function .
Scalar ddf(const Scalar &_x) const
Defines the Wendland second order weighting function .
Scalar f(const Scalar &_x) const
Defines the Wendland weighting function .
This Source Code Form is subject to the terms of the Mozilla Public License, v.