diff src/expm.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/expm.cc
+++ b/src/expm.cc
@@ -85,8 +85,12 @@
   int nr = arg.rows ();
   int nc = arg.columns ();
 
-  if (empty_arg ("expm", nr, nc) < 0)
+  int arg_is_empty = empty_arg ("expm", nr, nc);
+
+  if (arg_is_empty < 0)
     return retval;
+  if (arg_is_empty > 0)
+    return Matrix ();
 
   if (nr != nc)
     {