22 Range(
int s,
int d) : start(s), dim(d) { assert(d >= 0); }
27 int end()
const {
return start + dim; }
34 bool contains(
int i)
const {
return start <= i && i < end(); }
57 assert(this->contains(other));
58 return other - this->start;
#define TVM_DLLAPI
Definition: api.h:35
Range relativeRange(const Range &other) const
Definition: Range.h:55
int end() const
Definition: Range.h:27
Range(int s, int d)
Definition: Range.h:22
int dim
Definition: Range.h:24
bool contains(const Range &other) const
Definition: Range.h:40
bool intersects(const Range &other) const
Definition: Range.h:43
Range()
Definition: Range.h:21
bool operator==(const Range &other) const
Definition: Range.h:29
bool contains(int i) const
Definition: Range.h:34
int start
Definition: Range.h:23
bool operator!=(const Range &other) const
Definition: Range.h:31
Range operator-(int i) const
Definition: Range.h:49
Range operator+(int i) const
Definition: Range.h:46
bool operator==(const Variable &u, const Variable &v)
Definition: Variable.h:327