yangyutu / hungarian-cpp

Automatically exported from code.google.com/p/hungarian-cpp
0 stars 1 forks source link

Not doing any assignment for some simple matrices #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use: int r[2*2] =  {2, 0, 1, 0};
2. The assignment matrix is all full of 0's

However, if you do: int r[2*2] =  {1, 0, 2, 0};
The assignment matrix is {1, 0, 0, 1}.

What is the expected output? What do you see instead?
I would expect the assignment matrix {0, 1, 1, 0} for the first cost matrix.

What version of the product are you using? On what operating system?
I'm using the revision r6 and I have tried the code in Ubuntu and OS X and I 
have had the same results.

Original issue reported on code.google.com by mrfab.se...@gmail.com on 19 Dec 2014 at 7:10