changeset 6452:7e90124eddba

[project @ 2007-03-24 22:18:14 by dbateman]
author dbateman
date Sat, 24 Mar 2007 22:18:14 +0000
parents fdcb715e381c
children 4067a8caff18
files liboctave/ChangeLog liboctave/MatrixType.cc
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Sat Mar 24 17:54:23 2007 +0000
+++ b/liboctave/ChangeLog	Sat Mar 24 22:18:14 2007 +0000
@@ -1,3 +1,8 @@
+2007-03-24  Luis Ortiz <lortiz@interactivesupercomputing.com>
+
+	* MatrixType.cc (MatrixType::MatrixType(void)): Initialize
+	sp_bandden to zero for performance reasons as its not used.
+
 2007-03-23  David Bateman  <dbateman@free.fr>
 
 	* oct-rand.cc (octave_rand::seed): Seed differently for big and
--- a/liboctave/MatrixType.cc	Sat Mar 24 17:54:23 2007 +0000
+++ b/liboctave/MatrixType.cc	Sat Mar 24 22:18:14 2007 +0000
@@ -36,10 +36,8 @@
 // FIXME There is a large code duplication here
 
 MatrixType::MatrixType (void)
-  : typ (MatrixType::Unknown),
-    sp_bandden (octave_sparse_params::get_key ("bandden")),
-    bandden (0), upper_band (0), lower_band (0), dense (false),
-    full (false), nperm (0), perm (0) { }
+  : typ (MatrixType::Unknown), sp_bandden (0), bandden (0), upper_band (0), 
+    lower_band (0), dense (false), full (false), nperm (0), perm (0) { }
 
 MatrixType::MatrixType (const MatrixType &a)
   : typ (a.typ), sp_bandden (a.sp_bandden), bandden (a.bandden),