changeset 314:1738f4390384

[project @ 1994-01-25 23:19:17 by jwe]
author jwe
date Tue, 25 Jan 1994 23:19:17 +0000
parents 9465b39f764a
children 260863721a51
files liboctave/Matrix.cc
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/Matrix.cc	Fri Jan 21 23:43:10 1994 +0000
+++ b/liboctave/Matrix.cc	Tue Jan 25 23:19:17 1994 +0000
@@ -1,7 +1,7 @@
 // Matrix manipulations.                              -*- C++ -*-
 /*
 
-Copyright (C) 1992, 1993 John W. Eaton
+Copyright (C) 1992, 1993, 1994 John W. Eaton
 
 This file is part of Octave.
 
@@ -185,7 +185,8 @@
  * Matrix class.
  */
 
-Matrix::Matrix (const DiagMatrix& a) : Array2<double> (a.rows (), a.cols ())
+Matrix::Matrix (const DiagMatrix& a)
+  : Array2<double> (a.rows (), a.cols (), 0.0)
 {
   for (int i = 0; i < a.length (); i++)
     elem (i, i) = a.elem (i, i);
@@ -2318,14 +2319,14 @@
 }
 
 ComplexMatrix::ComplexMatrix (const DiagMatrix& a)
-  : Array2<Complex> (a.rows (), a.cols ())
+  : Array2<Complex> (a.rows (), a.cols (), 0.0)
 {
   for (int i = 0; i < a.length (); i++)
     elem (i, i) = a.elem (i, i);
 }
 
 ComplexMatrix::ComplexMatrix (const ComplexDiagMatrix& a)
-  : Array2<Complex> (a.rows (), a.cols ())
+  : Array2<Complex> (a.rows (), a.cols (), 0.0)
 {
   for (int i = 0; i < a.length (); i++)
     elem (i, i) = a.elem (i, i);