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

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

[Octave-bug-tracker] [bug #29768] logm fix


From: Rik
Subject: [Octave-bug-tracker] [bug #29768] logm fix
Date: Tue, 27 Jul 2010 20:05:43 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/9.10 (karmic) Firefox/3.6.8

Follow-up Comment #28, bug #29768 (project octave):

Marco,

I had two thoughts on the code.

Where you have written

min (find (tau <=  theta))

you could use

find (tau <= theta, 1)

Which finds the index of the first occurrence that matches.  This might be
clearer than using min in this case.

Second, a value for m is assigned only if the tau is less than theta(7) and
other conditions are met.  It would probably be a good idea to assign a value
to it before the loop is entered in case opt_iters has been set very low and
the loop exits before assigning a value to m.  What is the proper value in
this case?  7?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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