|
TVM
0.9.4
|
#include <tvm/hint/Substitution.h>
Public Member Functions | |
| Substitution (LinearConstraintPtr cstr, VariablePtr x, int rank=constant::fullRank, const abstract::SubstitutionCalculator &calc=internal::AutoCalculator()) | |
| Substitution (const std::vector< LinearConstraintPtr > &cstr, VariablePtr x, int rank=constant::fullRank, const abstract::SubstitutionCalculator &calc=internal::AutoCalculator()) | |
| Substitution (LinearConstraintPtr cstr, std::vector< VariablePtr > &x, int rank=constant::fullRank, const abstract::SubstitutionCalculator &calc=internal::AutoCalculator()) | |
| Substitution (const std::vector< LinearConstraintPtr > &cstr, const std::vector< VariablePtr > &x, int rank=constant::fullRank, const abstract::SubstitutionCalculator &calc=internal::AutoCalculator()) | |
| int | rank () const |
| int | m () const |
| const std::vector< LinearConstraintPtr > & | constraints () const |
| const std::vector< VariablePtr > & | variables () const |
| bool | isSimple () const |
| std::shared_ptr< abstract::SubstitutionCalculatorImpl > | calculator () const |
Hint for a substitution that could be done by the solver. A substitution is a set of variables and a set of constraints used to presolve them, which allow to effectively removing them from the problem.
| tvm::hint::Substitution::Substitution | ( | LinearConstraintPtr | cstr, |
| VariablePtr | x, | ||
| int | rank = constant::fullRank, |
||
| const abstract::SubstitutionCalculator & | calc = internal::AutoCalculator() |
||
| ) |
Constructor for a single constraint and a single variable
| cstr | The constraint used for the substitution. |
| x | The variable to substitute. |
| rank | the rank of the matrix multiplying x. By default it is the row size of this matrix. |
| calc | A class that performs matrix operations related to the substitution |
| tvm::hint::Substitution::Substitution | ( | const std::vector< LinearConstraintPtr > & | cstr, |
| VariablePtr | x, | ||
| int | rank = constant::fullRank, |
||
| const abstract::SubstitutionCalculator & | calc = internal::AutoCalculator() |
||
| ) |
Constructor for a set of constraints and a single variable
| cstr | The set of constraints used for the substitution. |
| x | The variable to substitute. |
| rank | the rank of the matrix multiplying x obtained by stacking the matrices in factor of x in each constraint. By default it is the row size of this matrix. |
| calc | A class that performs matrix operations related to the substitution |
| tvm::hint::Substitution::Substitution | ( | LinearConstraintPtr | cstr, |
| std::vector< VariablePtr > & | x, | ||
| int | rank = constant::fullRank, |
||
| const abstract::SubstitutionCalculator & | calc = internal::AutoCalculator() |
||
| ) |
Constructor for a single constraint and a set of variables
| cstr | The constraint used for the substitution. |
| x | The set variables to substitute. |
| rank | the rank of the matrices multiplying x obtained by concatenating the matrices in front of each xi. By default it is the row size of this matrix. |
| calc | A class that performs matrix operations related to the substitution |
| tvm::hint::Substitution::Substitution | ( | const std::vector< LinearConstraintPtr > & | cstr, |
| const std::vector< VariablePtr > & | x, | ||
| int | rank = constant::fullRank, |
||
| const abstract::SubstitutionCalculator & | calc = internal::AutoCalculator() |
||
| ) |
Constructor for a set of constraints and a set of variables
| cstr | The set of constraints used for the substitution. |
| x | The set variables to substitute. |
| rank | the rank of the matrix multiplying x, i.e the aggregation of all the matrices in front of the xi in all the constraints. By default, it is the row size of this matrix. |
| calc | A class that performs matrix operations related to the substitution |
| std::shared_ptr<abstract::SubstitutionCalculatorImpl> tvm::hint::Substitution::calculator | ( | ) | const |
Return the calculator used by this substitution.
| const std::vector<LinearConstraintPtr>& tvm::hint::Substitution::constraints | ( | ) | const |
The set of constraints used in the substitution.
| bool tvm::hint::Substitution::isSimple | ( | ) | const |
Return true is this substitution is based on a single constraint and a single variable.
| int tvm::hint::Substitution::m | ( | ) | const |
The total (row) size of the constraints.
| int tvm::hint::Substitution::rank | ( | ) | const |
The rank of the matrix multiplying x.
| const std::vector<VariablePtr>& tvm::hint::Substitution::variables | ( | ) | const |
The set of variables to substitute