|
TVM
0.9.4
|
#include <tvm/scheme/internal/AssignmentTarget.h>
This class describes the matrix and vector(s) rows in which a given constraint needs to be copied, and the convention to be used for those matrix and vectors.
If the target is quadratic form, the whole matrix and vector are returned.
| tvm::scheme::internal::AssignmentTarget::AssignmentTarget | ( | RangePtr | range, |
| MatrixRef | A, | ||
| constraint::Type | ct | ||
| ) |
Ax = 0, Ax <= 0 or Ax >= 0.
| tvm::scheme::internal::AssignmentTarget::AssignmentTarget | ( | RangePtr | range, |
| MatrixRef | A, | ||
| VectorRef | b, | ||
| constraint::Type | ct, | ||
| constraint::RHS | cr | ||
| ) |
Ax = +/-b, Ax <= +/-b or Ax >= +/-b
| tvm::scheme::internal::AssignmentTarget::AssignmentTarget | ( | RangePtr | range, |
| MatrixRef | A, | ||
| VectorRef | l, | ||
| VectorRef | u, | ||
| constraint::RHS | cr | ||
| ) |
l <= Ax <= u
| tvm::scheme::internal::AssignmentTarget::AssignmentTarget | ( | RangePtr | range, |
| VectorRef | l, | ||
| VectorRef | u | ||
| ) |
l <= x <= u
| tvm::scheme::internal::AssignmentTarget::AssignmentTarget | ( | RangePtr | range, |
| VectorRef | lu, | ||
| constraint::Type | ct | ||
| ) |
x >= b or x <= b
| tvm::scheme::internal::AssignmentTarget::AssignmentTarget | ( | MatrixRef | Q, |
| VectorRef | q, | ||
| constraint::RHS | cr | ||
| ) |
Quadratic function 1/2 x^T Q x +\epsilon q, where \epsilon = 0, 1 or -1 depending on cr.
| MatrixRef tvm::scheme::internal::AssignmentTarget::A | ( | int | colStart, |
| int | colDim | ||
| ) | const |
Return the (range.dim x colDim) block of A starting at (range.start,colStart)
| MatrixRef tvm::scheme::internal::AssignmentTarget::AFirstHalf | ( | int | colStart, |
| int | colDim | ||
| ) | const |
Same as A(...), and b(), but return only the first or second half of the row range. This is necessary when double-sided constraints are assigned to matrix/vector with single-sided convention
| MatrixRef tvm::scheme::internal::AssignmentTarget::ASecondHalf | ( | int | colStart, |
| int | colDim | ||
| ) | const |
Same as A(...), and b(), but return only the first or second half of the row range. This is necessary when double-sided constraints are assigned to matrix/vector with single-sided convention
| VectorRef tvm::scheme::internal::AssignmentTarget::b | ( | ) | const |
Return the segment of b defined by range.
| VectorRef tvm::scheme::internal::AssignmentTarget::bFirstHalf | ( | ) | const |
Same as A(...), and b(), but return only the first or second half of the row range. This is necessary when double-sided constraints are assigned to matrix/vector with single-sided convention
| VectorRef tvm::scheme::internal::AssignmentTarget::bSecondHalf | ( | ) | const |
Same as A(...), and b(), but return only the first or second half of the row range. This is necessary when double-sided constraints are assigned to matrix/vector with single-sided convention
l <= Ax <= u
Ax = +/-b, Ax <= +/-b, Ax >= +/-b or 1/2 x^T Q x +\epsilon q
| constraint::RHS tvm::scheme::internal::AssignmentTarget::constraintRhs | ( | ) | const |
| constraint::Type tvm::scheme::internal::AssignmentTarget::constraintType | ( | ) | const |
| VectorRef tvm::scheme::internal::AssignmentTarget::l | ( | ) | const |
Return the segment of l defined by range.
| MatrixRef tvm::scheme::internal::AssignmentTarget::Q | ( | ) | const |
Return the whole quadratic matrix
| VectorRef tvm::scheme::internal::AssignmentTarget::q | ( | ) | const |
Return the whole vector q.
| Range& tvm::scheme::internal::AssignmentTarget::range | ( | ) |
| const Range& tvm::scheme::internal::AssignmentTarget::range | ( | ) | const |
| AssignmentTarget& tvm::scheme::internal::AssignmentTarget::setA | ( | MatrixRef | A | ) |
| AssignmentTarget& tvm::scheme::internal::AssignmentTarget::setb | ( | VectorRef | b | ) |
| AssignmentTarget& tvm::scheme::internal::AssignmentTarget::setl | ( | VectorRef | l | ) |
| AssignmentTarget& tvm::scheme::internal::AssignmentTarget::setQ | ( | MatrixRef | Q | ) |
| AssignmentTarget& tvm::scheme::internal::AssignmentTarget::setq | ( | VectorRef | q | ) |
| AssignmentTarget& tvm::scheme::internal::AssignmentTarget::setu | ( | VectorRef | u | ) |
| int tvm::scheme::internal::AssignmentTarget::size | ( | ) | const |
Row size of the target.
| TargetType tvm::scheme::internal::AssignmentTarget::targetType | ( | ) | const |
| VectorRef tvm::scheme::internal::AssignmentTarget::u | ( | ) | const |
Return the segment of u defined by range.