bugGNU Octave - Bugs: bug #42658, Error in test for svds.m

 
 

bug #42658: Error in test for svds.m

Submitter:  José Luis García Pallero <jgpallero>
Submitted:  Tue 01 Jul 2014 05:30:43 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Mar 2017 01:02:56 PM UTC, comment #3: 
Marco Caliari <caliari>
Group Member
Sat 05 Jul 2014 06:49:36 PM UTC, comment #2: 

This issue comes up from time to time.  The problem is that the eigs call to the ARPACK library is not 100% deterministic.  Octave does everything possible to use the same data, same initialization vector, same random seeds, but there still seems to be differences related to what architecture Arpack was compiled on and with what options.  We could turn this into an xfail test, but other than that we don't have a way out.

Rik <rik5>
Group administrator
Fri 04 Jul 2014 03:30:58 PM UTC, comment #1: 

Thanks for your bug report. This test works for me. What is the s2 vector on your system? The error indicates svds is returning 6 singular values even though 7 were requested.

Mike Miller <mtmiller>
Group Member
Tue 01 Jul 2014 05:30:43 PM UTC, original submission:  

Hello:

A test fails in svds.m for the 3.8.2-rc2 version. The error is:

>>>>> processing /home/topo/Desktop/octave-3.8.2-rc2/scripts/sparse/svds.m

  *** testif HAVE_ARPACK, HAVE_UMFPACK
 [u2,s2,v2,flag] = svds (A,k,0,opts);
 s2 = diag (s2);
 assert (flag, !1);
 tol = 10 eps() norm(s2, 1);
 assert (s2, s(k:-1:1), tol);

!!!!! test failed
ASSERT errors for:  assert (s2,s (k:-1:1),tol)

  Location  |  Observed  |  Expected  |  Reason
     .          O(6x1)       E(7x1)      Dimensions don't match

I think is a problem with the dimensions of s(k:-1:1) in the assert()

José Luis García Pallero <jgpallero>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by caliari (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jgpallero (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-29 caliari StatusNeed Info Fixed
    2014-07-05 rik5 Open/ClosedOpen Closed
    2014-07-04 mtmiller Item GroupOther Incorrect Result
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code