bugGNU Octave - Bugs: bug #56933, linspace not Matlab-compatible for...

 
 

bug #56933: linspace not Matlab-compatible for edge cases with -Inf or Inf as endpoint

Submitter:  Rik <rik5>
Submitted:  Sun 22 Sep 2019 10:51:28 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  1 - Later Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 22 Sep 2019 10:51:28 PM UTC, original submission:  

Matlab example #1


linspace (-Inf, Inf, 5)
ans = [-Inf, -Inf, 0, Inf, Inf]


Octave produces


ans = [-Inf, NaN, 0, NaN, Inf]


Matlab example #2


linspace (-Inf, 0, 4)
ans = [-Inf, NaN, NaN, 0]


Octave produces


ans = [-Inf, NaN, -Info, 0]


I am merely recording this.  I don't think it is necessary to have special cases in the code in liboctave/array/xRowVector.cc to deal with this so I am marking this bug as "Won't Fix".  But it will exist in case anyone searches for this.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-22 rik5 Priority5 - Normal 1 - Later
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code