Mercurial > hg > octave-max
changeset 13182:cb2b57abcc35
onenormest.m: Initialize random number generator in tests to guarantee reliable passage.
* onenormest.m: Initialize random number generator in tests to guarantee reliable passage.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 20 Sep 2011 19:42:13 -0700 |
parents | 583830ce6afa |
children | cc1fd6a58151 |
files | scripts/linear-algebra/onenormest.m |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/linear-algebra/onenormest.m +++ b/scripts/linear-algebra/onenormest.m @@ -278,6 +278,7 @@ ## Only likely to be within a factor of 10. %!test %! N = 100; +%! rand ('state', 42); % Initialize to guarantee reproducible results %! A = rand (N); %! [nm1, v1, w1] = onenormest (A); %! [nminf, vinf, winf] = onenormest (A', 6);