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

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

[Octave-bug-tracker] [bug #55249] function ones does not always return a


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #55249] function ones does not always return a valid matrix
Date: Thu, 20 Dec 2018 12:08:25 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #3, bug #55249 (project octave):

There are no visible indications because the difference is supposed to be
completely internal. An ordinary user at the Octave command line should not
need to know whether a row of ones is a true row vector or a range, they are
identical from a behavior point of view.


>> A = ones (1, 100);
>> B = [A];
>> C = repmat (1, 1, 100);
>> isequal (A, B)
ans = 1
>> all (A == B)
ans = 1
>> isequal (A, C)
ans = 1
>> all (A == C)
ans = 1


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55249>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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