RideDistributor  0.0.1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Macros | Functions
RLAPSolverHungarian.cpp File Reference
#include <unordered_set>
#include <numeric>
#include <stdexcept>
#include "RLAPSolverHungarian.hpp"
#include <iostream>

Macros

#define DBG_PRINT_ZEROS(v)
 
#define MAX_DIM(m)   std::max(m.getDims()[0], m.getDims()[1])
 

Functions

 rowMin ({MAX_DIM(mat)}, maxCost)
 
 colMin ({MAX_DIM(mat)}, maxCost)
 
 solved (false)
 

Macro Definition Documentation

#define DBG_PRINT_ZEROS (   v)
Value:
std::cout << "zeros" << std::endl; \
for(auto elm: v) \
std::cout << '[' << elm.row \
<< ", " << elm.col << \
", " << elm.deleted << ']' << std::endl

Prints contents of a container of RLAPSolverHungarian::Zero human readable

#define MAX_DIM (   m)    std::max(m.getDims()[0], m.getDims()[1])

Used to determine the solver size needed internally

Function Documentation

colMin ( {MAX_DIM(mat)}  ,
maxCost   
)
rowMin ( {MAX_DIM(mat)}  ,
maxCost   
)
solved ( false  )