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

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

[Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning
Date: Sat, 11 Jun 2016 11:55:07 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #2, bug #43098 (project octave):

I'm looking into this, and noticed that most of the "special" types (diagonal,
sparse etc.) have quite inefficient implementations of is_true().

More seriously,


octave:1> if ([NaN, 1; 1, NaN]), 1, else 0, end
error: invalid conversion from NaN to logical
octave:1> if sparse([NaN, 1; 1, NaN]), 1, else 0, end
ans = 1


Also, I'd like to have the warning issued at most once between each pair of
interactive keyboard events.  Is there a standard mechanism for that? 
Currently I just have a flag that gets set each time interactive_input() is
called.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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