[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/
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning,
Lachlan Andrew <=
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/12
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Colin Macdonald, 2016/06/13
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/22
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Colin Macdonald, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, John W. Eaton, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Rik, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/24
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Colin Macdonald, 2016/06/24