diff src/ov-re-diag.cc @ 8650:a1ae2aae903e

abs,real,imag,conj: use code from mx-inlines rather than the generic map
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 02 Feb 2009 15:35:32 +0100
parents d95282fa0579
children 8dd69187c4a2
line wrap: on
line diff
--- a/src/ov-re-diag.cc
+++ b/src/ov-re-diag.cc
@@ -126,7 +126,7 @@
 octave_value
 octave_diag_matrix::imag (void) const
 {
-  return DiagMatrix (matrix.rows (), matrix.cols ());
+  return DiagMatrix (matrix.rows (), matrix.cols (), 0.0);
 }
 
 bool