octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51241] Infinite loop in normest1


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #51241] Infinite loop in normest1
Date: Thu, 15 Jun 2017 16:06:56 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

Follow-up Comment #14, bug #51241 (project octave):

I think that the reason is not the misplaced i++, but the wrong maximum number
of unparallel columns 2^(n-1) (in the comment it is written parallel, this is
also wrong). I propose to modify


imax = min (t, 2 ^ (n - 1));


to


imax = min (t, 2 ^ (n - 1) - n);


If it works for you, I will make a patch. How is it possible to add a test for
this bug? For instance, I can always reproduce it with


rand('seed',1);, condest (a)


Is it true for everybody?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51241>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]