#include <tvm/hint/internal/Substitutions.h>
◆ add()
| void tvm::hint::internal::Substitutions::add |
( |
const Substitution & |
s | ) |
|
◆ additionalConstraints()
The remaining constraints on y and z
◆ additionalVariables()
| const std::vector<VariablePtr>& tvm::hint::internal::Substitutions::additionalVariables |
( |
| ) |
const |
The additional nullspace variables z
◆ finalize()
| void tvm::hint::internal::Substitutions::finalize |
( |
| ) |
|
Compute all the data needed for the substitutions. Needs to be called after all the call to add or remove, and before the calls to variables, variableSubstitutions and additionalConstraints.
◆ getSubstitutionFor()
Get the substitution using the constraint
◆ otherVariables()
| const std::vector<VariablePtr>& tvm::hint::internal::Substitutions::otherVariables |
( |
| ) |
const |
◆ remove()
| void tvm::hint::internal::Substitutions::remove |
( |
const Substitution & |
s | ) |
|
◆ substitute()
If x is one of the substituted variables, returns the variables it is replaced by. Otherwise, return x
◆ substitutions()
| const std::vector<Substitution>& tvm::hint::internal::Substitutions::substitutions |
( |
| ) |
const |
Get the vector of all substitutions, as added. Note that it is not necessarily the vector of substitutions actually used, as it might be needed to group substitutions (when a group of substitutions depends on each other variables).
◆ updateSubstitutions()
| void tvm::hint::internal::Substitutions::updateSubstitutions |
( |
| ) |
|
Update the data for the substitutions
◆ updateVariableValues()
| void tvm::hint::internal::Substitutions::updateVariableValues |
( |
| ) |
const |
Update the value of the substituted variables according to the values of the non-substituted ones.
◆ uses()
Return true if c is used in one of the substitutions
◆ variables()
| const std::vector<VariablePtr>& tvm::hint::internal::Substitutions::variables |
( |
| ) |
const |
All variables x in the substitutions
◆ variableSubstitutions()
The linear functions x = f(y,z) corresponding to the variables
◆ SubstitutionTest
| friend class SubstitutionTest |
|
friend |
The documentation for this class was generated from the following file: