octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs
Date: Mon, 29 Nov 2021 16:13:03 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Follow-up Comment #11, bug #51779 (project octave):

Checking in three years later before 7.1 is released. The status is exactly as
before:


>> bsxfun (@power, y, x) == power (y, x)
ans =

  0  1
  1  1

>> bsxfun (@power, double(y), double(x)) == power (double(y), double(x))
ans =

  1  1
  1  1

>> bsxfun (@power, double(y), x) == power (double(y), x)
ans =

  1  1
  1  1

>> bsxfun (@power, y, double(x)) == power (y, double(x))
ans =

  1  1
  1  1



Promoting x or y or both to double eliminates the error, and Matlab errors on
nearly all mixed-type combinations, so it's not a compatibility issue.

Does this cause any test suite errors at present? If not, is this OK to close
since there is a ready workaround?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?51779>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]