|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "boost/io/ios_state.hpp"
26 std::cout <<
"doing step " <<
m_step << std::endl;
54 if(
debug) std::cout <<
"done running munkres algorithm: " << std::endl;
120 int nCoveredCols = 0;
170 if(starred0atcol != -1){
184 for(
unsigned int i = 0;
i<
p.size();++
i){
185 const int row =
p[
i].first;
186 const int col =
p[
i].second;
216 std::vector<coords>
path;
223 while(!done &&
n<4){
n++;
225 if(starred0atrow > -1){
276 boost::io::ios_all_saver ias(std::cout);
277 std::cout << std::setw(5) << std::setprecision(3) <<
"cov|";
279 std::cout << std::setw(7) << std::setprecision(3) << (
m_colIsCovered[
col] ?
"+|" :
"|");
280 } std::cout << std::endl;
283 std::cout << std::setw(5) << std::setprecision(3) << (
m_rowIsCovered[
row] ?
"+ |" :
"|");
285 std::cout << std::setw(5) << std::setprecision(3) <<
m[
row][
col];
288 else std::cout <<
" ";
290 } std::cout << std::endl;
path
python interpreter configuration --------------------------------------—
void erase_primes_and_covers()
int find_in_row(const int row, markertype what)
std::vector< bool > m_rowIsCovered
std::vector< vec_type > matrix_type
void augment_path(const std::vector< coords > &path)
result_type run(vec_type &costvector, bool debug=false)
munkres(matrix_type costs)
std::pair< int, int > coords
std::vector< double > vec_type
int find_in_col(const int col, markertype what)
void printmatrix(const matrix_type &)
std::vector< int > result_type
std::vector< bool > m_colIsCovered
void find_a_zero(int &row, int &col)