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: Mike Miller
Subject: [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs
Date: Fri, 18 Aug 2017 00:03:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #51779 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #4:

This regression was introduced with

https://hg.savannah.gnu.org/hgweb/octave/rev/b488e958d024

Use modf, pow from C++ std library. These functions are guaranteed to be part
of C++11 standard library.

Something about this has changed the following two operations, compared to
Octave 4.2.1:


power (single ([-0.0226; 0]), int32 ([-5 0]))
single ([-0.0226; 0]) .^ int32 ([-5 0])


This has something to do with the mixed types and the broadcasting expansion.
This does not affect the normal elementwise exponentiation when both operands
have the same dimension. And calling bsxfun explicitly is also not affected.

This is possibly because the change is now calling std::pow, which is a
function template, so different underlying C functions might be called. Before
this change, these few spots in the code were calling the C function pow,
which always takes its arguments as doubles.

I may try forcing some of these std::pow calls to operate on doubles to see if
anything has an effect by trial and error.

Adding Rik in cc.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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