26 #ifndef ASLINTERPOLATION 27 #define ASLINTERPOLATION 30 #include "../aslUtilities.h" 37 typedef std::shared_ptr<ElementBase>
Element;
56 template <
typename T>
inline T
operator(T x,T r0)
58 return fabs(x)<r0 ? 1.-
fabs(x)/r0 : 0;
72 template <
typename T>
inline T
operator(T x,T r0)
76 return a<r0 ? b*b : 0;
90 template <
typename T>
inline T
operator(T x,T r0)
94 return a<r0 ? b*b*b : 0;
113 return b < 1 ? 2. * b2*b - 3. * b2 + 1 : 0;
Advanced Simulation Library.
std::shared_ptr< ElementBase > Element
double operator()(double x)
Quadratic spline function.