help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

random behavior of svds function


From: Muhali
Subject: random behavior of svds function
Date: Thu, 27 Oct 2011 13:39:16 -0700 (PDT)

I see really strange behavior when testing the svds function. The result is
totally random, as you can see from this:

%> while [[ 1 == 1 ]] ; do ./run-octave --norc --silent --no-history --eval
'test svds' 2>/dev/null | head -1 ; done
PASSES 5 out of 5 tests
  ***** test
  ***** test
  ***** test
PASSES 5 out of 5 tests
  ***** test
  ***** test
  ***** test
  ***** test
  ***** test
PASSES 5 out of 5 tests
PASSES 5 out of 5 tests
PASSES 5 out of 5 tests
PASSES 5 out of 5 tests
  ***** test
  ***** test
...

When it fails, it fails on this:

octave> s = svds (speye (10));
octave> assert (s, ones (6, 1), 2*eps);
error: assert (s,ones (6, 1),2 * eps) expected
   1
   1
   1
   1
   1
   1
but got
   1.0000
   1.0000
   1.0000
   1.0000
   1.0000
   1.0000


What is going on??

I am using the current tip with 64-bit enabled.

M.
----------------------------------------------------------------------
GNU Octave Version 3.5.0+
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.38-2-amd64 #1 SMP Sat Apr 23 18:47:49 UTC 2011
x86_64
----------------------------------------------------------------------


--
View this message in context: 
http://octave.1599824.n4.nabble.com/random-behavior-of-svds-function-tp3945978p3945978.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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