mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Remove std::cerr in iterative solver since we don't have iostream.
This fixes #2123
This commit is contained in:
parent
d5b7981119
commit
660c6b857c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user