Managed reference to IntSetNode.
More...
#include <int_set.h>
Managed reference to IntSetNode.
- See also
- IntSetNode
◆ CanProveNegative()
bool tvm::arith::IntSet::CanProveNegative |
( |
| ) |
const |
- Returns
- Whether the set is proved to be smaller than 0
◆ CanProveNonNegative()
bool tvm::arith::IntSet::CanProveNonNegative |
( |
| ) |
const |
- Returns
- Whether the set is proved to be larger than or equal to 0
◆ CanProveNonPositive()
bool tvm::arith::IntSet::CanProveNonPositive |
( |
| ) |
const |
- Returns
- Whether the set is proved to be smaller than or equal to 0
◆ CanProvePositive()
bool tvm::arith::IntSet::CanProvePositive |
( |
| ) |
const |
- Returns
- Whether the set is proved to be bigger than 0
◆ CoverRange()
Range tvm::arith::IntSet::CoverRange |
( |
Range |
max_range | ) |
const |
Find a range that covers the region.
- Parameters
-
max_range | The range to be covered. |
- Returns
- The covering range.
◆ Everything()
static IntSet tvm::arith::IntSet::Everything |
( |
| ) |
|
|
static |
- Returns
- The set contains everything
◆ FromMinExtent()
Construct a set representing a range [min, min + extent).
- Parameters
-
min | The minimum of the range range |
extent | The extent of the range. |
- Returns
- The constructed set.
◆ FromRange()
Construct a set representing a range.
- Parameters
-
- Returns
- The constructed set.
◆ GetSignType()
SignType tvm::arith::IntSet::GetSignType |
( |
| ) |
const |
- Returns
- The sign of the elements in the integer set
◆ HasLowerBound()
bool tvm::arith::IntSet::HasLowerBound |
( |
| ) |
const |
- Returns
- Whether the set has lower bound.
◆ HasUpperBound()
bool tvm::arith::IntSet::HasUpperBound |
( |
| ) |
const |
- Returns
- Whether the set has upper bound.
◆ Interval()
Construct a set representing a interval.
- Parameters
-
min | The minimum value of the interval. |
max | The maximum value of the interval. |
- Returns
- The constructed set.
◆ IsEverything()
bool tvm::arith::IntSet::IsEverything |
( |
| ) |
const |
- Returns
- Whether the set represent everything
◆ IsNothing()
bool tvm::arith::IntSet::IsNothing |
( |
| ) |
const |
- Returns
- Whether the set represent nothing
◆ IsSinglePoint()
bool tvm::arith::IntSet::IsSinglePoint |
( |
| ) |
const |
- Returns
- Whether the set is a single point
◆ MatchRange()
bool tvm::arith::IntSet::MatchRange |
( |
const tvm::Range & |
r | ) |
const |
Try to match IntSet with range r.
- Note
- It is guanrateed that IntSet::FromRange(r).MatchRange(r) == true
- Returns
- true if we can prove they are the same.
◆ max()
PrimExpr tvm::arith::IntSet::max |
( |
| ) |
const |
- Returns
- upper bound of the set
◆ min()
PrimExpr tvm::arith::IntSet::min |
( |
| ) |
const |
- Returns
- Lower bound of the set
◆ Nothing()
static IntSet tvm::arith::IntSet::Nothing |
( |
| ) |
|
|
static |
- Returns
- The set contains nothing
◆ PointValue()
PrimExpr tvm::arith::IntSet::PointValue |
( |
| ) |
const |
The single point value, call only if IsSinglePoint is true.
- Returns
- The point value.
◆ SinglePoint()
construct a point set.
- Parameters
-
point | The point in the set. |
- Returns
- construct a single point set
◆ TVM_DEFINE_OBJECT_REF_METHODS()
◆ Vector()
construct a integer set from vector expression.
- Parameters
-
vec | The vector expression, can also be single point. |
- Returns
- The result set containing the indices in the vector.
The documentation for this class was generated from the following file: