bugGNU Octave - Bugs: bug #53179, Wrong result with bsxfun (single...


bug #53179: Wrong result with bsxfun (single complex argument)

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sat 17 Feb 2018 09:53:05 PM UTC  
Category:  Octave Function Severity:  4 - Important
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.2.2 Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


Wed 21 Mar 2018 10:36:28 PM UTC, comment #5:

There was actually quite a bit of cruft to clean up in bsxfun. I did that here http://hg.savannah.gnu.org/hgweb/octave/rev/bff4a7c7bc39 and also added a BIST test for this bug report.

The change will be part of the 4.4.0 release.

Rik <rik5>
Project Administrator
Thu 15 Mar 2018 10:09:26 PM UTC, comment #4:

I'm about halfway through a changeset for this. OctConf 2018 intervened and I've got work to do on Friday. But I hope to commit something soon before the 4.4 release.

Rik <rik5>
Project Administrator
Thu 15 Mar 2018 09:45:16 PM UTC, comment #3:

Rik's suggestions plus one other change seem to fix this bug.

Ceral Paquet <octavebugs>
Mon 19 Feb 2018 01:08:19 AM UTC, comment #2:

This is almost certainly a bug in bsxfun.cc. The following is taken from bsxfun.cc:

Notice how when the result type is "single" and complex, a double complex NDAarray is used. This may be a relatively simple fix.

Rik <rik5>
Project Administrator
Sun 18 Feb 2018 06:21:45 AM UTC, comment #1:

Confirmed. And it is only bsxfun. The interprter, with broadcasting, gets it right.

Rik <rik5>
Project Administrator
Sat 17 Feb 2018 09:53:05 PM UTC, original submission:

I just ran into a serious problem with bsxfun with single complex arguments.

The result only seems to depend on "im" being single and complex.

Ceral Paquet <octavebugs>


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

Attach Files:

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 mtmiller (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by octavebugs (Submitted the item)

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

    Only project members can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-21 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2018-03-20 mtmiller CategoryNone => Octave Function
        Severity3 - Normal => 4 - Important
        Item GroupNone => Incorrect Result
        Release4.2.1 => 4.2.2
    2018-02-18 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.3