Remove std::cerr in iterative solver since we don't have iostream.

This fixes #2123
This commit is contained in:
David Tellenbach 2021-01-21 11:40:05 +01:00
parent d5b7981119
commit 660c6b857c

View File

@ -158,8 +158,6 @@ void constrained_cg(const TMatrix& A, const CMatrix& C, VectorX& x,
rho = r.dot(z); rho = r.dot(z);
if (iter.finished(rho)) break; if (iter.finished(rho)) break;
if (iter.noiseLevel() > 0 && transition) std::cerr << "CCG: transition\n";
if (transition || iter.first()) gamma = 0.0; if (transition || iter.first()) gamma = 0.0;
else gamma = (std::max)(0.0, (rho - old_z.dot(z)) / rho_1); else gamma = (std::max)(0.0, (rho - old_z.dot(z)) / rho_1);
p = z + gamma*p; p = z + gamma*p;