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 FunctionSeverity: 4 - Important
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.2Operating 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 21 Mar 2018 10:36:28 PM UTCrik5StatusConfirmed=>Fixed
    Tue 20 Mar 2018 07:21:00 AM UTCmtmillerCategoryNone=>Octave Function
      Severity3 - Normal=>4 - Important
      Item GroupNone=>Incorrect Result
    Sun 18 Feb 2018 06:21:45 AM UTCrik5StatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1