[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new snapshot?
From: |
Michael D. Godfrey |
Subject: |
Re: new snapshot? |
Date: |
Fri, 26 Feb 2010 10:42:31 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 |
On 2/26/10 10:15 AM, Jaroslav Hajek wrote:
Are you sure? This is exactly the opposite of what I get. Sometimes
the assert fails with
!!!!! test failed
assert (s (k:-1:1),s2,1e-10) expected
38.060
38.060
38.034
38.034
38.015
38.015
38.004
but got
38.060
38.034
38.034
38.015
38.015
38.004
38.004
maximum absolute error 0.0263523 exceeds tolerance 1e-10
and the latter result is correct, AFAIK.
The latter result is s2 in the test. This is what I get too. s2,
computed from:
[u2,s2,v2,flag] = svds(a,k,0);
s2 = diag(s2);
is correct. It is the "expected" vector that is wrong. This comes from:
a =
sparse([3:n,1:n,1:(n-2)],[1:(n-2),1:n,3:n],[ones(1,n-2),0.4*n*ones(1,n),ones(1,n-2)]);
[u,s,v] = svd(full(a));
s = diag(s);
[dum, idx] = sort(abs(s));
s = s(idx);
Agree?
Michael
- Re: new snapshot?, (continued)
- Re: new snapshot?, David Bateman, 2010/02/18
- Re: new snapshot?, John W. Eaton, 2010/02/24
- Re: new snapshot?, Jaroslav Hajek, 2010/02/25
- Re: new snapshot?, John W. Eaton, 2010/02/25
- Re: new snapshot?, John W. Eaton, 2010/02/25
- Re: new snapshot?, Søren Hauberg, 2010/02/25
- Re: new snapshot?, Michael D. Godfrey, 2010/02/26
- Re: new snapshot?, John W. Eaton, 2010/02/26
- Re: new snapshot?, Michael D. Godfrey, 2010/02/26
- Re: new snapshot?, Jaroslav Hajek, 2010/02/26
- Re: new snapshot?,
Michael D. Godfrey <=
- Re: new snapshot?, John W. Eaton, 2010/02/26
- Re: new snapshot?, Michael D. Godfrey, 2010/02/26
- Re: new snapshot?, Michael D. Godfrey, 2010/02/26
- Re: new snapshot?, Michael D. Godfrey, 2010/02/26
- Re: new snapshot?, David Bateman, 2010/02/28
- Re: new snapshot?, Michael D. Godfrey, 2010/02/28
Re: new snapshot?, Benjamin Lindner, 2010/02/18
R: new snapshot?, Marco Atzeri, 2010/02/26
Re: new snapshot?, Ben Abbott, 2010/02/25