45 #include <visp3/core/vpConfig.h> 46 #include <visp3/core/vpColVector.h> 47 #include <visp3/core/vpMatrix.h> 69 #ifdef VISP_HAVE_CPP11_COMPATIBILITY 130 std::vector<BoundedIndex> l = {},
131 std::vector<BoundedIndex> u = {},
132 const double &tol = 1e-6);
139 static bool colReduction(
vpMatrix &A,
vpColVector &b,
bool full_rank =
false,
const double &tol = 1e-6);
156 for(
unsigned int i = 0; i < x.
getRows(); ++i)
158 if(std::abs(x[i]) > tol)
176 for(
unsigned int i = 0; i < b.
getRows(); ++i)
178 if(std::abs(A.
getRow(i)*x - b[i]) > tol)
195 for(
unsigned int i = 0; i < d.
getRows(); ++i)
197 if(C.
getRow(i)*x - d[i] > thr)
213 for(
unsigned int i = 0; i < x.
getRows(); ++i)
231 for(
unsigned int i = 0; i < x.
getRows(); ++i)
Implementation of a matrix and operations on matrices.
static bool allClose(const vpMatrix &A, const vpColVector &x, const vpColVector &b, const double &tol=1e-6)
std::pair< unsigned int, double > BoundedIndex
static bool allGreater(const vpColVector &x, const double &thr=1e-6)
vpRowVector getRow(const unsigned int i) const
This class provides two solvers for Linear Programs.
static bool allLesser(const vpColVector &x, const double &thr=1e-6)
unsigned int getRows() const
Implementation of column vector and the associated operations.
static bool allLesser(const vpMatrix &C, const vpColVector &x, const vpColVector &d, const double &thr=1e-6)
static bool allZero(const vpColVector &x, const double &tol=1e-6)