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

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

[Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab


From: Rik
Subject: [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2
Date: Tue, 25 Aug 2015 19:01:35 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #4, bug #45820 (project octave):

I don't know what behavior to match, but the code in Octave is quite clear. 
As an example, liboctave/array/dMatrix.cc begins with


Matrix linspace (const ColumnVector& x1,
                 const ColumnVector& x2,
                 octave_idx_type n)

{
  if (n < 1) n = 1;


which guarantees that at least one element is returned regardless of the value
of N.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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