15 stepinv_ = (nodes - 1) / (upper - lower);
21 int nodes()
const {
return edges_ + 2; }
22 int cells()
const {
return edges_ + 1; }
26 bool inRange(
int i)
const {
return i >= 0 && i <= edges_; }
31 f = modff((a - lower()) * stepinv_, &b);
40 }
else if (ind > edges_) {
50 return tmp *
step() + lower();
55 int ind =
static_cast<int>((a - lower()) /
step());
const edm::EventSetup & c
int index(Scalar a) const
returns valid index, or -1 if the value is outside range +/- one cell.
bool inRange(int i) const
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
Scalar closestNode(Scalar a) const
void normalize(int &ind, Scalar &f) const
Grid1D(Scalar lower, Scalar upper, int nodes)
int index(Scalar a, Scalar &f) const