Cleanup: style, use braces in source/ (include disabled blocks)

This commit is contained in:
2019-05-31 23:21:16 +10:00
parent 72a563cdee
commit aba4e6810f
106 changed files with 944 additions and 483 deletions

View File

@@ -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"