bugGNU Octave - Bugs: bug #51249, center() relies on broadcasting

 
 

bug #51249: center() relies on broadcasting

Submitted by:  Guillaume <gyom>
Submitted on:  Fri 16 Jun 2017 02:10:26 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Unexpected Error
Status: FixedAssigned to: None
Originator Name: GuillaumeOpen/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.

 

Tue 08 Aug 2017 03:54:40 PM UTC, comment #4:

I pushed the cset here (http://hg.savannah.gnu.org/hgweb/octave/rev/724fe19b50dc).

Rik <rik5>
Project Administrator
Tue 08 Aug 2017 09:52:15 AM UTC, comment #3:

Thanks Rik and sorry for having forgotten about this. You cset fixes the problem. I haven't come across other places in the code where broadcasting was an issue.

Guillaume <gyom>
Mon 07 Aug 2017 04:07:57 PM UTC, comment #2:

Try the attached cset center.cset. If there are other common uses of broadcasting it would be best to find them now and temporarily replace them.

(file #41448)

Rik <rik5>
Project Administrator
Fri 16 Jun 2017 03:43:21 PM UTC, comment #1:

It would be okay to modify center until this is fixed. If you can submit a proposed patch that would help. In the code, before the modification, add a note about why this is being done and when it can be reverted. Something like

Rik <rik5>
Project Administrator
Fri 16 Jun 2017 02:10:26 PM UTC, original submission:

The fact that center() relies on broadcasting makes it crash when the input is a sparse or diagonal matrix:

These limitations of broadcasting are known (see bug #41441 and bug #35787) but are quite annoying when core functions rely on it - I came across this while calling var() on a sparse matrix.

If fixing the mentioned bugs are long term projects, would it be ok to modify center() not to rely on broadcasting and use bsxfun() instead?

Guillaume <gyom>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #41448:  center.cset added by rik5 (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by gyom (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
    Tue 08 Aug 2017 03:54:40 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Mon 07 Aug 2017 04:07:57 PM UTCrik5Attached File-=>Added center.cset, #41448
      StatusConfirmed=>Patch Submitted
    Fri 16 Jun 2017 03:43:21 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1