35 auto const dind = (x - offset) * hi;
36 auto const ind =
static_cast<int>(dind);
38 assert((ind >= 0) and (
static_cast<std::size_t
>(ind) < table.size()));
39 auto const dx = dind -
static_cast<T
>(ind);
40 auto const uind =
static_cast<unsigned int>(ind);
43 return table[uind] * (T{1} - dx) + table[uind + 1] * dx;