From 2a9c5d796e2f9d7b2b50739f61ef382623d977d6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 25 Mar 2013 11:21:35 -0400 Subject: [PATCH] Fix bad bad typo. --- optimization/step_length_positive_definite.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimization/step_length_positive_definite.m b/optimization/step_length_positive_definite.m index ced5562..7e15a46 100644 --- a/optimization/step_length_positive_definite.m +++ b/optimization/step_length_positive_definite.m @@ -34,7 +34,7 @@ function alpha = step_length_positive_definite(g, Q, p) % denom = (p' * Q * p); - if (abs(denom) > eps) + if (abs(denom) < eps) % Catch divide-by-zeros. If denom is effectively zero, set it to % something tiny instead. This trick is also used in the PCGM. denom = sign(denom)*eps; -- 2.44.2