bugGNU Octave - Bugs: bug #46644, splines: Relax unit test in

 
 

bug #46644: splines: Relax unit test in

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Wed 09 Dec 2015 06:36:09 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 09 Dec 2015 06:53:10 PM UTC, comment #1: 

Thanks. Interestingly, the test passes with Octave 3.8, but fails with 4.0. I applied the change.

Nir Krakauer <nir_krakauer>
Wed 09 Dec 2015 06:36:09 PM UTC, original submission:  

all the unit tests in tps_val.m worked in version 1.2.8 of the splines package.  In version 1.2.9, the first unit test fails:


octave:2> pkg load splines
octave:3> test tps_val
***** assert (tpaps(x,y,1,x), tps_val(x,c,x));
 x = rand(100, 2)*2 - 1;
 y = x(:, 1) .^ 2 + x(:, 2) .^ 2;
 c = tpaps(x,y,1);
!!!!! test failed
ASSERT errors for:  assert (tpaps (x, y, 1, x),tps_val (x, c, x))

  Location  |  Observed  |  Expected  |  Reason
    (1)        0.84147      0.84147      Abs err 1.2212e-15 exceeds tol 0
    (2)         0.9093       0.9093      Abs err 8.8818e-16 exceeds tol 0
    (4)        -0.7568      -0.7568      Abs err 6.6613e-16 exceeds tol 0
    (5)        -0.95892     -0.95892     Abs err 6.6613e-16 exceeds tol 0
    (6)        -0.27942     -0.27942     Abs err 3.3307e-16 exceeds tol 0
    (8)        0.98936      0.98936      Abs err 4.4409e-16 exceeds tol 0
    (9)        0.41212      0.41212      Abs err 4.4409e-16 exceeds tol 0
    (10)       -0.54402     -0.54402     Abs err 2.6645e-15 exceeds tol 0
    (12)       -0.95402     -0.95402     Abs err 1.1102e-15 exceeds tol 0


The trivial cset attached to this bug report fixes the problem.

Rafael Laboissière <rlaboiss>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nir_krakauer (Posted a comment)
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-10 carandraug StatusNone Fixed
        Open/ClosedOpen Closed
    2015-12-09 rlaboiss Attached File- Added relax-unit-test-tps-val.diff, #35679

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code