[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: |
Thu, 17 Aug 2017 20:37:03 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
URL:
<http://savannah.gnu.org/bugs/?51779>
Summary: bsxfun unit tests occasionally fail on certain
random inputs
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Thu 17 Aug 2017 05:37:01 PM PDT
Category: Test Suite
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
I see intermittent test failures in the test scripts in
libinterp/corefcn/bsxfun.cc. At least one case that I have captured and
reproduced is due to a call to power with a particularly bad set of
arguments.
A much reduced minimal example that shows the problem operation first:
x = [int32(-5) 0];
y = [single(-0.0226); 0];
assert (bsxfun (@power, y, x), power (y, x))
This is a reduced and simplified version of the following test case that is
actually pulled from the test scripts in bsxfun.cc:
x = [ 2.6, -4.8, 0.3; -2.6, -1.6, -3.4; 1.2, 4.1, 4.9];
y = [-0.0226; 3.6882; -2.3801];
assert (bsxfun (@power, single (y), int32 (x)), power (single (y), int32
(x)))
And I pulled this one data set from an actual test run, as can be shown by
loading the attached file and running the test suite as follows:
load random_states;
rand ("state", rand_state);
test libinterp/corefcn/bsxfun.cc
I can easily pick some arbitrary random state to hardcode into the test
scripts to ensure that this doesn't happen, but maybe someone wants to look at
this further to see if something actually does need fixing, or whether the
random vectors can be constrained better.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 17 Aug 2017 05:37:01 PM PDT Name: random_states Size: 15KiB By:
mtmiller
<http://savannah.gnu.org/bugs/download.php?file_id=41564>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51779>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs,
Mike Miller <=
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Mike Miller, 2017/08/17
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Dmitri A. Sergatskov, 2017/08/17
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Dmitri A. Sergatskov, 2017/08/17
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Mike Miller, 2017/08/18
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Mike Miller, 2017/08/18
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Nicholas Jankowski, 2017/08/24
- [Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs, Rik, 2017/08/24