Commit 4c6ba35d authored by Mathieu Giraud's avatar Mathieu Giraud

core/dynprog.cpp: debug, display of -INF

parent ecb7cf7d
......@@ -566,9 +566,16 @@ ostream& operator<<(ostream& out, const DynProg& dp)
for (int j=0; j<=dp.n; j++)
{
if (dp.B[i][j].score)
out << setw(4) << dp.B[i][j].score << dp.B[i][j].type ;
{
if (dp.B[i][j].score <= MINUS_INF)
out << "-INF" ;
else
out << setw(4) << dp.B[i][j].score ;
}
else
out << " " << dp.B[i][j].type ;
out << " ";
out << dp.B[i][j].type ;
}
out << endl ;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment