|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #51241] Infinite loop in normest1 |
Date: | Thu, 15 Jun 2017 12:08:38 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #9, bug #51241 (project octave): I don't understand the algorithm, but here is a dump of the variables. debug> i i = 2 debug> imax imax = 3 debug> p p = 0 debug> S S = 1 1 -1 -1 1 1 -1 -1 1 debug> Sold Sold = 1 1 -1 1 -1 -1 1 1 1 The issue is this expression any (abs (S(:,i)' * Sold) == n) which is always true. I wonder if the code should read if (expression) ## i-th column of S parallel to previous one do stuff... endif i++; rather than if (expression) ## i-th column of S parallel to previous one do stuff... else i++; endif _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51241> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |