Eliminated all the calls to std::find()
authorAlex Leontiev <alozz1991@gmail.com>
Sat, 20 Jul 2013 12:14:02 +0000 (15:14 +0300)
committerAlex Leontiev <alozz1991@gmail.com>
Sat, 20 Jul 2013 12:14:02 +0000 (15:14 +0300)
commitc123974f420cebc3c39f103988d594df67903093
tree046993ec7d61156a2ae2948ecf149390ac880d9c
parent33e7640fb07bedc47ececf580a21cfb8495ac087
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.
modules/optim/include/opencv2/optim.hpp
modules/optim/src/lpsolver.cpp
modules/optim/test/test_lpsolver.cpp