Eliminated all the calls to std::find()

This is done by keeping indexToRow vector, that keeps the information,
opposite to those kept by N and B. That is, while N and B help to
determine which variable corresponds to given column in column-vector c
or row in matrix b, indexToRow helps to determine the corresponding
row/column for a given variable.

At this point, I'm waiting for comments from pull request reviewer and
not working on any upgrades. Comments are appreciated, as usual.
This commit is contained in:
Alex Leontiev
2013-07-20 15:14:02 +03:00
parent 33e7640fb0
commit c123974f42
3 changed files with 40 additions and 42 deletions

View File

@@ -47,7 +47,6 @@
namespace cv{namespace optim
{
using namespace std;
//!the return codes for solveLP() function
enum
{