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

 
 

bug #42658: Error in test for svds.m

Submitted by:  José Luis García Pallero <jgpallero>
Submitted on:  Tue 01 Jul 2014 05:30:43 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 29 Mar 2017 01:02:56 PM UTC, comment #3:

I think this is fixed by http://hg.savannah.gnu.org/hgweb/octave/rev/73f62b4bb533

Marco Caliari <caliari>
Project 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>
Project 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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by caliari (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jgpallero (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Mar 2017 01:02:56 PM UTCcaliariStatusNeed Info=>Fixed
    Sat 05 Jul 2014 06:49:36 PM UTCrik5Open/ClosedOpen=>Closed
    Fri 04 Jul 2014 03:30:58 PM UTCmtmillerItem GroupOther=>Incorrect Result
      StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1