Mercurial > hg > octave-lyh
diff scripts/linear-algebra/cond.m @ 4478:7afd4bf05aa8
[project @ 2003-07-30 19:15:31 by jwe]
author | jwe |
---|---|
date | Wed, 30 Jul 2003 19:15:31 +0000 |
parents | f8dde1807dee |
children | e7da90a1cc11 |
line wrap: on
line diff
--- a/scripts/linear-algebra/cond.m +++ b/scripts/linear-algebra/cond.m @@ -31,13 +31,7 @@ if (nargin == 1) [nr, nc] = size (a); - if (nr == 0 && nc == 0) - if (! propagate_empty_matrices) - error ("cond: empty matrix is invalid as argument"); - endif - if (strcmp (propagate_empty_matrices, "warn")) - warning ("cond: argument is empty matrix\n"); - endif + if (nr == 0 || nc == 0) retval = 0.0; endif if (any (any (isinf (a) | isnan (a))))