|
TVM
0.9.4
|
#include <tvm/Range.h>
Public Member Functions | |
| Range () | |
| Range (int s, int d) | |
| int | end () const |
| bool | operator== (const Range &other) const |
| bool | operator!= (const Range &other) const |
| bool | contains (int i) const |
| bool | contains (const Range &other) const |
| bool | intersects (const Range &other) const |
| Range | operator+ (int i) const |
| Range | operator- (int i) const |
| Range | relativeRange (const Range &other) const |
Public Attributes | |
| int | start |
| int | dim |
A pair (start, dim) representing the integer range from start (included) to start+dim (excluded).
|
inline |
|
inline |
|
inline |
Return true if other is contained in the range.
Empty ranges are considered contained if their start is in the range.
|
inline |
Return true if i is contained in the range.
|
inline |
First integer not in the range
|
inline |
Return true if both range intersects.
|
inline |
|
inline |
Shift start by i.
|
inline |
Shift start by -i.
|
inline |
Return the range of other within this Range.
e.g Range(3,8).relativeRange(5,2) returns Range(2,2)
| int tvm::Range::dim |
| int tvm::Range::start |