Mercurial > hg > octave-nkf
diff src/eig.cc @ 718:e81d3a66725e
[project @ 1994-09-21 14:58:18 by jwe]
author | jwe |
---|---|
date | Wed, 21 Sep 1994 14:58:18 +0000 |
parents | 36ba0576bd1b |
children | dfe01093f657 |
line wrap: on
line diff
--- a/src/eig.cc +++ b/src/eig.cc @@ -53,8 +53,11 @@ int nr = arg.rows (); int nc = arg.columns (); - if (empty_arg ("eig", nr, nc) < 0) + int arg_is_empty = empty_arg ("eig", nr, nc); + if (arg_is_empty < 0) return retval; + else if (arg_is_empty > 0) + return Octave_object (2, Matrix ()); if (nr != nc) {