Cleanup: style, use braces in source/ (include disabled blocks)
This commit is contained in:
@@ -94,8 +94,9 @@ EIGEN_DONT_INLINE void constrained_conjugate_gradient(const MatrixType &mat,
|
||||
residual -= alpha * tmp; // update residue
|
||||
|
||||
residualNorm2 = residual.squaredNorm();
|
||||
if (residualNorm2 < threshold)
|
||||
if (residualNorm2 < threshold) {
|
||||
break;
|
||||
}
|
||||
|
||||
z = precond.solve(residual); // approximately solve for "A z = residual"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user