diff liboctave/dbleSVD.h @ 11498:367bfee35ba0

data member initialization fixes
author John W. Eaton <jwe@octave.org>
date Thu, 13 Jan 2011 02:37:45 -0500
parents 3ce0c530a9c9
children fd0a3ac60b0e
line wrap: on
line diff
--- a/liboctave/dbleSVD.h	Thu Jan 13 02:23:38 2011 -0500
+++ b/liboctave/dbleSVD.h	Thu Jan 13 02:37:45 2011 -0500
@@ -48,21 +48,26 @@
       GESDD
     };
 
-  SVD (void) : sigma (), left_sm (), right_sm () { }
+  SVD (void) : type_computed (), sigma (), left_sm (), right_sm () { }
 
   SVD (const Matrix& a, 
        type svd_type = SVD::std, driver svd_driver = SVD::GESVD) 
-    { init (a, svd_type, svd_driver); }
+    : type_computed (), sigma (), left_sm (), right_sm ()
+    {
+      init (a, svd_type, svd_driver);
+    }
 
   SVD (const Matrix& a, octave_idx_type& info, 
        type svd_type = SVD::std, driver svd_driver = SVD::GESVD) 
+    : type_computed (), sigma (), left_sm (), right_sm ()
     {
       info = init (a, svd_type, svd_driver);
     }
 
   SVD (const SVD& a)
-    : type_computed (a.type_computed),
-      sigma (a.sigma), left_sm (a.left_sm), right_sm (a.right_sm) { }
+    : type_computed (a.type_computed), sigma (a.sigma),
+      left_sm (a.left_sm), right_sm (a.right_sm)
+    { }
 
   SVD& operator = (const SVD& a)
     {