Mercurial > octave
diff src/DLD-FUNCTIONS/inv.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 | 3b46230f7a4d |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/inv.cc Thu May 22 22:00:26 2008 +0200 +++ b/src/DLD-FUNCTIONS/inv.cc Mon Jun 02 16:57:45 2008 +0200 @@ -175,6 +175,17 @@ return retval; } +/* + +%!assert(inv ([1, 2; 3, 4]), [-2, 1; 1.5, -0.5], sqrt (eps)) +%!assert(inv (single([1, 2; 3, 4])), single([-2, 1; 1.5, -0.5]), sqrt (eps ('single'))) + +%!error <Invalid call to inv.*> inv (); +%!error <Invalid call to inv.*> inv ([1, 2; 3, 4], 2); +%!error inv ([1, 2; 3, 4; 5, 6]); + + */ + // FIXME -- this should really be done with an alias, but // alias_builtin() won't do the right thing if we are actually using // dynamic linking.