Mercurial > octave
changeset 20942:7832c351a6f5
svds.m: Don't save/restore randn seed in BIST tests.
* svds.m: Don't save/restore randn seed in BIST tests.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 18 Dec 2015 16:21:05 -0800 |
parents | a4f5da7c5463 |
children | 42319d289714 |
files | scripts/sparse/svds.m |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/sparse/svds.m Fri Dec 18 16:18:41 2015 -0800 +++ b/scripts/sparse/svds.m Fri Dec 18 16:21:05 2015 -0800 @@ -259,9 +259,7 @@ %! s = s(idx); %! u = u(:, idx); %! v = v(:, idx); -%! randn_state = randn ("state"); %! rand_state = rand ("state"); -%! randn ("state", 42); % Initialize to make normest function reproducible %! rand ("state", 42); %! opts.v0 = rand (2*n,1); % Initialize eigs ARPACK starting vector %! % to guarantee reproducible results @@ -301,7 +299,6 @@ %! assert (s, ones (6, 1), 8*eps); %!test -%! ## Restore random number generator seeds at end of tests +%! ## Restore random number generator seed at end of tests %! rand ("state", rand_state); -%! randn ("state", randn_state);