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

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

[Octave-bug-tracker] [bug #42408] Incorrect results of isequal() with em


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #42408] Incorrect results of isequal() with empty sparse matrices and alphanumerical value comparision.
Date: Sun, 25 May 2014 12:37:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36

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

Hi Rik,

I think you are right, here the output from MATLAB 2013b:

 >> x = sparse ([])
 x =
    All zero sparse: 0-by-0
 
 >> f_x = find (x)
 f_x =
      []
 
 >> size (f_x)
 ans =
      0     0
 
 >> x = ones (0,100,2)
 x =
    Empty array: 0-by-100-by-2
 
 >> f_x = find (x)
 f_x =
    Empty matrix: 0-by-1
 
 >> size (f_x)
 ans =
      0     1

What do you suggest to overcome this issue?

Best, 
Kai

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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