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

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

[Octave-bug-tracker] [bug #47631] ind2sub with empty dimension vector


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47631] ind2sub with empty dimension vector
Date: Wed, 13 Apr 2016 00:49:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #5, bug #47631 (project octave):

Aditya, if x = [], which is size [0,0], there is no reason to expect that
ind2sub ([], ...) will generate indices that can index it.

Note also that your example used "sizem" where Mike suggested "sizemax" (which
seems not to be supported in Matlab -- try 2^30 instead).

The important question is: can you think of a reason a user may want to call 
ind2sub  with an empty size matrix?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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