Dear Vadim!

How about the solution I have employed in last commit? Please, let me know
whether you like it or not.

Except for the issue you've mentioned about vector of var-indices (which
requires some thought) all others are (hopefully) fixed. I will think about
vector of var-indices tomorrow and tell what I've came up with.

Best Regards,
Alex
On 11 Jul 2013 21:16, "Vadim Pisarevsky" <notifications@github.com> wrote:

> In modules/optim/src/lpsolver.cpp:
>
> > @@ -0,0 +1,322 @@
> > +#include "opencv2/ts.hpp"
> > +#include "precomp.hpp"
> > +#include <climits>
> > +#include <algorithm>
> > +#include <cstdarg>
> > +
> > +namespace cv{namespace optim{
> > +using std::vector;
> > +
> > +#ifdef ALEX_DEBUG
>
> Do something like this
>
> #ifdef ALEX_DEBUG
> static void print_matrix(const Mat& x) { ... }
> #else
> static void print_matrix(const Mat& /*x*/) {}
> #endif
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Itseez/opencv/pull/1108/files#r5147901>
> .
>