diff liboctave/dMatrix.cc @ 6699:3f4ccca05612

[project @ 2007-06-12 20:48:02 by jwe]
author jwe
date Tue, 12 Jun 2007 20:48:03 +0000
parents e978a9233cf6
children 2f17d5556756
line wrap: on
line diff
--- a/liboctave/dMatrix.cc
+++ b/liboctave/dMatrix.cc
@@ -2252,6 +2252,9 @@
 
   Matrix m = *this;
 
+  if (numel () == 1)
+    return Matrix (1, 1, exp (m(0)));
+
   octave_idx_type nc = columns ();
 
   // Preconditioning step 1: trace normalization to reduce dynamic