1 #ifndef NPSTAT_ARRAYRANGE_HH_ 2 #define NPSTAT_ARRAYRANGE_HH_ 30 :
BoxND<unsigned>(dim, r1) {}
39 :
BoxND<unsigned>(shape) {}
52 bool isCompatible(
const unsigned* shape,
unsigned shapeLen)
const;
72 void lowerLimits(
unsigned* limits,
unsigned limitsLen)
const;
75 void upperLimits(
unsigned* limits,
unsigned limitsLen)
const;
78 void rangeLength(
unsigned* range,
unsigned rangeLen)
const;
82 #endif // NPSTAT_ARRAYRANGE_HH_ ArrayRange(const ArrayShape &shape)
void upperLimits(unsigned *limits, unsigned limitsLen) const
std::vector< unsigned > ArrayShape
unsigned long dim() const
unsigned long rangeSize() const
ArrayRange(unsigned dim, const Interval< unsigned > &r1)
bool isCompatible(const ArrayShape &shape) const
void rangeLength(unsigned *range, unsigned rangeLen) const
void lowerLimits(unsigned *limits, unsigned limitsLen) const
ArrayRange & stripOuterLayer()
bool operator<(const ArrayRange &) const
Utilities for defining shapes of multidimensional arrays.
Template to represent rectangles, boxes, and hyperboxes.