summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--least_squares.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/least_squares.cpp b/least_squares.cpp
index 58dab69..1e464fe 100644
--- a/least_squares.cpp
+++ b/least_squares.cpp
@@ -131,7 +131,7 @@ Vector gradientAscent(const QuadraticModel& M, const Vector& x₀, Real ε = 1e-
Vector xₜ₊₁;
Real Hₜ₊₁;
- while(
+ while (
xₜ₊₁ = normalize(xₜ + α * ∇H), Hₜ₊₁ = M.H(xₜ₊₁),
Hₜ₊₁ < Hₜ + 0.5 * α * m
) {