{
// The algorithm expects more columns than rows in the cost matrix.
MatrixXi correct_matrix = cost_matrix;
{
// The algorithm expects more columns than rows in the cost matrix.
MatrixXi correct_matrix = cost_matrix;
bool is_transposed = false;
if (cost_matrix.cols() < cost_matrix.rows()){
cout << "cols < rows, transpose." << endl;
bool is_transposed = false;
if (cost_matrix.cols() < cost_matrix.rows()){
cout << "cols < rows, transpose." << endl;