41 #ifndef DTK_WENDLANDBASIS_IMPL_HPP 42 #define DTK_WENDLANDBASIS_IMPL_HPP 57 const double x )
const 59 double xval = x / radius;
60 double onemx = 1.0 - xval;
61 return ( xval < 1.0 ) ? onemx * onemx : 0.0;
72 const double x )
const 74 double xval = x / radius;
75 return ( xval < 1.0 ) ? 2.0 * xval - 2.0 : 0.0;
86 const double x )
const 88 double xval = x / radius;
89 double onemx = 1.0 - xval;
90 double onemx2 = onemx * onemx;
91 return ( xval < 1.0 ) ? onemx2 * onemx2 * ( 4.0 * xval + 1.0 ) : 0.0;
102 const double x )
const 104 double xval = x / radius;
105 double xmone = xval - 1.0;
106 return ( xval < 1.0 ) ? 20.0 * xval * xmone * xmone * xmone : 0.0;
117 const double x )
const 119 double xval = x / radius;
120 double onemx = 1.0 - xval;
121 double onemx2 = onemx * onemx;
122 return ( xval < 1.0 )
123 ? onemx2 * onemx2 * onemx2 *
124 ( 35.0 * xval * xval + 18.0 * xval + 3.0 )
136 const double x )
const 138 double xval = x / radius;
139 double xmone = xval - 1.0;
140 double xmone2 = xmone * xmone;
141 return ( xval < 1.0 )
142 ? 56.0 * xval * xmone2 * xmone2 * xmone * ( 5.0 * xval + 1 )
154 const double x )
const 156 double xval = x / radius;
157 double onemx = 1.0 - xval;
158 double onemx2 = onemx * onemx;
159 double onemx4 = onemx2 * onemx2;
160 double xs = xval * xval;
161 return ( xval < 1.0 )
163 ( 32.0 * xs * xval + 25.0 * xs + 8.0 * xval + 1.0 )
175 const double x )
const 177 double xval = x / radius;
178 double xmone = xval - 1.0;
179 double xmone2 = xmone * xmone;
180 double xmone4 = xmone2 * xmone2;
181 return ( xval < 1.0 )
182 ? 22.0 * xval * xmone4 * xmone2 * xmone *
183 ( 16.0 * xval * xval + 7.0 * xval + 1.0 )
193 #endif // end DTK_WENDLANDBASIS_IMPL_HPP Wendland compactly supported radial basis function.