|
tvm
|
Range of a linear integer function. Use to do specify the possible index values. More...
#include <analyzer.h>
Public Member Functions | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("arith.ModularSet", ModularSetNode, Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| int64_t | coeff |
| linear co-efficient More... | |
| int64_t | base |
| The base. More... | |
Static Public Attributes | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
Range of a linear integer function. Use to do specify the possible index values.
set = { coeff * x + base | x in Z }
When coeff != 0, it can also be written as set = { n | n % coeff == base }
This is useful to decide if the index is dividable by certain value. For example, if index = 0 + 4 x, then we know it can be divided by 4.
|
inlinestatic |
| tvm::arith::ModularSetNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "arith.ModularSet" | , |
| ModularSetNode | , | ||
| Object | |||
| ) |
|
staticconstexpr |
| int64_t tvm::arith::ModularSetNode::base |
The base.
| int64_t tvm::arith::ModularSetNode::coeff |
linear co-efficient