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

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

[Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0


From: Rik
Subject: [Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0
Date: Mon, 04 Mar 2013 00:25:42 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

Follow-up Comment #8, bug #38423 (project octave):

Range::min() and Range::max() are never called unless there is at least one
element in the range.  

On the second question, when you create an empty range, such as 1:-1:2, you do
not get a null range but actually a null matrix gets created.  You can check
with typeinfo() and the return object is not "range" but "matrix".  The
dimensions of the null matrix are 1x0 as one can get, for example, by "ones
(1,0)".  Unless there is a compelling reason to have the dimensions be exactly
0x0 I would let sleeping dogs lie because I couldn't quickly figure out which
code is generating this particular matrix.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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