[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octav
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3) |
Date: |
Wed, 09 Mar 2016 20:22:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 |
Follow-up Comment #2, bug #47368 (project octave):
In the file svds.m I find the following code:
## We wish to exclude all eigenvalues that are less than zero as these
## are artifacts of the way the matrix passed to eigs is formed. There
## is also the possibility that the value of sigma chosen is exactly
## a singular value, and in that case we're dead!! So have to rely on
## the warning from eigs. We exclude the singular values which are
## less than or equal to zero to within some tolerance scaled by the
## norm since if we don't we might end up with too many singular
## values.
tol = norma * opts.tol;
ind = find (s > tol);
if (length (ind) < k)
## Too few eigenvalues returned. Add in any zero eigenvalues of B,
## including the nominally negative ones.
zind = find (abs (s) <= tol);
p = min (length (zind), k - length (ind));
ind = [ind; zind(1:p)];
elseif (length (ind) > k)
## Too many eigenvalues returned. Select according to criterium.
if (b_sigma == 0)
ind = ind(end+1-k:end); # smallest eigenvalues
else
ind = ind(1:k); # largest eigenvalues
endif
endif
s = s(ind);
I think this means that the patch you mentioned is NOT included here.
The windows version of 4.0.1-rc3 that gave me this error was installed from
the "official" exe-installer at alpha.gnu.org/gnu/octave .
Looking at the mentioned patch, it seems to me that is was only applied to the
default branch in the repository. I assume that the 4.0.1 release will be
taken from the stable branch. Maybe this is why this patch is not included in
the 4.0.1-rc3 release candidate?
Note: When I only run "test svds.m" in this installation then I get 6 passing
tests (out of 6), no errors in this case. Even running this test 100 times (in
a for loop) only gives me passing tests. I don't understand this. If you want
me to rerun the __run_test_suite__ command again on this installation, then
please let me know (it takes quite a while on this computer...)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47368>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Hartmut, 2016/03/09
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Rik, 2016/03/09
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3),
Hartmut <=
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Mike Miller, 2016/03/09
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Hartmut, 2016/03/09
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Rik, 2016/03/09
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Avinoam Kalma, 2016/03/10
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Hartmut, 2016/03/10
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Avinoam Kalma, 2016/03/10
- [Octave-bug-tracker] [bug #47368] test of svds.m fails on Windows (Octave 4.0.1-rc3), Hartmut, 2016/03/12