45 #include <visp3/core/vpConfig.h>
46 #include <visp3/core/vpColVector.h>
47 #include <visp3/core/vpMatrix.h>
69 #ifdef VISP_HAVE_CPP11_COMPATIBILITY
121 typedef std::pair<unsigned int, double> BoundedIndex;
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);
154 static bool allZero(
const vpColVector &x,
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)
211 static bool allLesser(
const vpColVector &x,
const double &thr = 1e-6)
213 for(
unsigned int i = 0; i < x.
getRows(); ++i)
229 static bool allGreater(
const vpColVector &x,
const double &thr = 1e-6)
231 for(
unsigned int i = 0; i < x.
getRows(); ++i)