13 #ifndef QMCPLUSPLUS_SPLINEBOUND_HPP 14 #define QMCPLUSPLUS_SPLINEBOUND_HPP 36 template<
typename T,
typename TRESIDUAL>
37 inline void getSplineBound(
const T x,
const int nmax,
int& ind, TRESIDUAL& dx)
47 #if defined(__INTEL_LLVM_COMPILER) || defined(__INTEL_CLANG_COMPILER) 52 dx = std::modf(x, &ipart);
54 ind =
static_cast<int>(ipart);
59 dx = T(1) - std::numeric_limits<T>::epsilon();
helper functions for EinsplineSetBuilder
void getSplineBound(const T x, const int nmax, int &ind, TRESIDUAL &dx)
break x into the integer part and residual part and apply bounds
MakeReturn< UnaryNode< FnFloor, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t floor(const Vector< T1, C1 > &l)