Mercurial > octave
changeset 22152:19d54df7d719
test: increase tolerance on Matrix tests
* dMatrix.cc: Increase tolerances on tests of Matrix multiplication with
random values that occasionally fail.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 20 Jul 2016 10:20:20 -0700 |
parents | 283d8dfcad37 |
children | bbaeaed0c584 |
files | liboctave/array/dMatrix.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/array/dMatrix.cc Wed Jul 20 08:54:51 2016 -0700 +++ b/liboctave/array/dMatrix.cc Wed Jul 20 10:20:20 2016 -0700 @@ -3005,11 +3005,11 @@ %! cv = randn (10,1); %! rv = randn (1,10); %! rvt = rv'; -%!assert ([M*cv,M*cv], M*[cv,cv], 1e-13) -%!assert ([M'*cv,M'*cv], M'*[cv,cv], 1e-13) -%!assert ([rv*M;rv*M], [rv;rv]*M, 1e-13) -%!assert ([rv*M';rv*M'], [rv;rv]*M', 1e-13) -%!assert (2*rv*cv, [rv,rv]*[cv;cv], 1e-13) +%!assert ([M*cv,M*cv], M*[cv,cv], 2e-13) +%!assert ([M'*cv,M'*cv], M'*[cv,cv], 2e-13) +%!assert ([rv*M;rv*M], [rv;rv]*M, 2e-13) +%!assert ([rv*M';rv*M'], [rv;rv]*M', 2e-13) +%!assert (2*rv*cv, [rv,rv]*[cv;cv], 2e-13) %!assert (M'\cv, Mt\cv, 1e-14) %!assert (M'\rv', Mt\rvt, 1e-14)