Mercurial > octave
diff src/DLD-FUNCTIONS/schur.cc @ 7814:87865ed7405f
Second set of single precision test code and fix of resulting bugs
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 02 Jun 2008 16:57:45 +0200 |
parents | 82be108cc558 |
children | 81d6ab3ac93c |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/schur.cc Thu May 22 22:00:26 2008 +0200 +++ b/src/DLD-FUNCTIONS/schur.cc Mon Jun 02 16:57:45 2008 +0200 @@ -390,6 +390,27 @@ } /* + +%!test +%! a = [1, 2, 3; 4, 5, 9; 7, 8, 6]; +%! [u, s] = schur (a); +%! assert(u' * a * u, s, sqrt (eps)); + +%!test +%! a = single([1, 2, 3; 4, 5, 9; 7, 8, 6]); +%! [u, s] = schur (a); +%! assert(u' * a * u, s, sqrt (eps('single'))); + +%!test +%! fail("schur ([1, 2; 3, 4], 2)","warning"); + +%!error <Invalid call to schur.*> schur (); +%!error schur ([1, 2, 3; 4, 5, 6]); + + */ + + +/* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: ***