diff src/ov-re-diag.cc @ 10815:0eb323b71957

simplify narrowing of diagonal matrices
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 23 Jul 2010 08:20:39 +0200
parents 57a59eae83cc
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/ov-re-diag.cc
+++ b/src/ov-re-diag.cc
@@ -74,9 +74,8 @@
 {
   octave_base_value *retval = 0;
 
-  // FIXME: the proxy mechanism of DiagArray2 causes problems here.
   if (matrix.nelem () == 1)
-    retval = new octave_scalar (double (matrix (0, 0)));
+    retval = new octave_scalar (matrix (0, 0));
 
   return retval;
 }