16 stepinv_ = (nodes-1)/(upper - lower);
61 int ind =
static_cast<int>((a-
lower())/
step());
int index(Scalar a) const
returns valid index, or -1 if the value is outside range +/- one cell.
bool inRange(int i) const
const T & max(const T &a, const T &b)
Scalar closestNode(Scalar a) const
std::vector< std::vector< double > > tmp
void normalize(int &ind, Scalar &f) const
Grid1D(Scalar lower, Scalar upper, int nodes)
int index(Scalar a, Scalar &f) const