Managed reference to IntSetObj.
More...
#include <int_set.h>
Managed reference to IntSetObj.
- See also
- IntSetObj
◆ CanProveNegative()
| TVM_TIRX_DLL bool tvm::sym::IntSet::CanProveNegative |
( |
| ) |
const |
- Returns
- Whether the set is proved to be smaller than 0
◆ CanProveNonNegative()
| TVM_TIRX_DLL bool tvm::sym::IntSet::CanProveNonNegative |
( |
| ) |
const |
- Returns
- Whether the set is proved to be larger than or equal to 0
◆ CanProveNonPositive()
| TVM_TIRX_DLL bool tvm::sym::IntSet::CanProveNonPositive |
( |
| ) |
const |
- Returns
- Whether the set is proved to be smaller than or equal to 0
◆ CanProvePositive()
| TVM_TIRX_DLL bool tvm::sym::IntSet::CanProvePositive |
( |
| ) |
const |
- Returns
- Whether the set is proved to be bigger than 0
◆ CanProveSinglePoint()
Check if we can prove it is a single point.
Unlike IsSinglePoint, which only checks ptr equality this function will invoke analyzer to do stonger proofs but also takes longer time.
Use this function in some of the primitives but do not use it in the inner loop of simplification.
- Parameters
-
- Returns
- Whether we can prove it is a single point
◆ CoverRange()
Find a range that covers the region.
- Parameters
-
| max_range | The range to be covered. |
- Returns
- The covering range.
◆ Everything()
- 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()
- Returns
- The sign of the elements in the integer set
◆ HasLowerBound()
- Returns
- Whether the set has lower bound.
◆ HasUpperBound()
- 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()
- Returns
- Whether the set represent everything
◆ IsNothing()
- Returns
- Whether the set represent nothing
◆ IsSinglePoint()
- Returns
- Whether the set is a single point
◆ MatchRange()
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()
- Returns
- upper bound of the set
◆ min()
- Returns
- Lower bound of the set
◆ Nothing()
- Returns
- The set contains nothing
◆ PointValue()
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_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()
| tvm::sym::IntSet::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE |
( |
IntSet |
, |
|
|
ffi::ObjectRef |
, |
|
|
IntSetObj |
|
|
) |
| |
◆ 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: