bugGNU Octave - Bugs: bug #47934, polyval returns wrong empty...

 
 

bug #47934: polyval returns wrong empty dimensions for empty input

Submitter:  Marco Caliari <caliari>
Submitted:  Mon 16 May 2016 11:03:55 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 May 2016 06:39:03 PM UTC, comment #2: 

I pushed the cset here (http://hg.savannah.gnu.org/hgweb/octave/rev/08e861873118).  Thanks Marco and Lachlan.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Tue 17 May 2016 03:10:19 AM UTC, comment #1: 

I can confirm that Matlab gives


Empty matrix: 0-by-1


and the supplied fix looks right.  Marco, could you please put the bug number in the summary line of the cset?

Lachlan Andrew <lachlan>
Mon 16 May 2016 11:03:55 AM UTC, original submission:  

Hi,

I think


polyval([1,2,3],zeros(0,1))


should returns zeros(0,1) and not []. I enclose a changeset.

Marco Caliari <caliari>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #37184:  polyval.cset added by caliari (947B - application/x-tex)
file #37177:  polyval.cset added by caliari (934B - application/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by caliari (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-20 rik5 Open/ClosedOpen Closed
    2016-05-20 rik5 StatusPatch Submitted Fixed
    2016-05-17 caliari Attached File- Added polyval.cset, #37184
    2016-05-16 mtmiller StatusNone Patch Submitted
    2016-05-16 caliari Attached File- Added polyval.cset, #37177

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code