bugGNU Octave - Bugs: bug #44291, nextpow2 with vector uses length...

 
 

bug #44291: nextpow2 with vector uses length of vector instead of each element of vector

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Wed 18 Feb 2015 04:53:39 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: Carnë Draug <carandraug>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 20 Feb 2015 10:33:25 AM UTC, comment #2:

Pushed and closed http://hg.savannah.gnu.org/hgweb/octave/rev/511b3ae4872b

Carnë Draug <carandraug>
Project MemberIn charge of this item.
Wed 18 Feb 2015 05:38:30 PM UTC, comment #1:

Attached proposed fix. I could not find any nextpow2 usage in core where an input vector was being used. No failures on make check after the change.

Will push it in a few days if no one opposes.

(file #33115)

Carnë Draug <carandraug>
Project MemberIn charge of this item.
Wed 18 Feb 2015 04:53:39 PM UTC, original submission:

When calling nextpow2 with a vector, Octave currently uses the length of the vector. On the other hand, Matlab computes the nextpow2 for each element of the vector.

I can fix this myself, but that is a backwards incompatible change (also, I believe that Matlab behaviour here is saner but I am more used to nd signals).

Carnë Draug <carandraug>
Project MemberIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #33115:  bug44291-fix.cset added by carandraug (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by carandraug (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Feb 2015 10:33:25 AM UTCcarandraugStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Wed 18 Feb 2015 05:38:43 PM UTCcarandraugStatusNone=>Patch Submitted
      Assigned toNone=>carandraug
    Wed 18 Feb 2015 05:38:30 PM UTCcarandraugAttached File-=>Added bug44291-fix.cset, #33115

    Back to the top


    Powered by Savane 3.1-cleanup1