Mercurial > hg > octave-lojdl
changeset 8066:366821c0c01c
Adjust tolerance to single precision test.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 26 Aug 2008 23:26:58 -0400 |
parents | 6333da0dfdfd |
children | c476c2214a90 |
files | src/ChangeLog src/DLD-FUNCTIONS/chol.cc |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-08-26 Ben Abbott <bpabott@mac.com> + + * DLD-FUNCTIONS/chol.cc (test): Double tolerance. + 2008-08-26 Jaroslav Hajek <highegg@gmail.com> * parse.y (Fassignin): Use default scope when calling varref.
--- a/src/DLD-FUNCTIONS/chol.cc +++ b/src/DLD-FUNCTIONS/chol.cc @@ -778,7 +778,7 @@ %! R1 = cholupdate(R1,single(u),"-"); %! %! assert(norm(triu(R1)-R1,Inf) == 0) -%! assert(norm(R1 - R,Inf) < 1e1*eps('single')) +%! assert(norm(R1 - R,Inf) < 2e1*eps('single')) %! %!test %! R = chol(single(Ac)); @@ -791,7 +791,7 @@ %! R1 = cholupdate(R1,single(uc),"-"); %! %! assert(norm(triu(R1)-R1,Inf) == 0) -%! assert(norm(R1 - R,Inf) < 1e1*eps('single')) +%! assert(norm(R1 - R,Inf) < 2e1*eps('single')) */ DEFUN_DLD (cholinsert, args, nargout,