summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2024-04-23 08:58:24 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2024-04-23 08:58:24 +0200
commit55eaf002b03af313b4f2db2049225d9ffd2cbd3c (patch)
tree28c0e542467f816c77f6b087f537d36fd1adc860
parent5a0d6d1ca19107883724cd19209027fb34724e6d (diff)
downloadcode-55eaf002b03af313b4f2db2049225d9ffd2cbd3c.tar.gz
code-55eaf002b03af313b4f2db2049225d9ffd2cbd3c.tar.bz2
code-55eaf002b03af313b4f2db2049225d9ffd2cbd3c.zip
Small formatting change.HEADmaster
-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
) {