diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2024-04-23 08:58:24 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2024-04-23 08:58:24 +0200 |
commit | 55eaf002b03af313b4f2db2049225d9ffd2cbd3c (patch) | |
tree | 28c0e542467f816c77f6b087f537d36fd1adc860 | |
parent | 5a0d6d1ca19107883724cd19209027fb34724e6d (diff) | |
download | code-marginal_paper.tar.gz code-marginal_paper.tar.bz2 code-marginal_paper.zip |
Small formatting change.marginal_paper
-rw-r--r-- | least_squares.cpp | 2 |
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 ) { |