comparison liboctave/fCmplxSVD.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
comparison
equal deleted inserted replaced
11497:7bddd70bc838 11498:367bfee35ba0
34 OCTAVE_API 34 OCTAVE_API
35 FloatComplexSVD 35 FloatComplexSVD
36 { 36 {
37 public: 37 public:
38 38
39 FloatComplexSVD (void) { } 39 FloatComplexSVD (void)
40 : type_computed (), sigma (), left_sm (), right_sm ()
41 { }
40 42
41 FloatComplexSVD (const FloatComplexMatrix& a, 43 FloatComplexSVD (const FloatComplexMatrix& a,
42 SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) 44 SVD::type svd_type = SVD::std,
45 SVD::driver svd_driver = SVD::GESVD)
46 : type_computed (), sigma (), left_sm (), right_sm ()
43 { 47 {
44 init (a, svd_type, svd_driver); 48 init (a, svd_type, svd_driver);
45 } 49 }
46 50
47 FloatComplexSVD (const FloatComplexMatrix& a, octave_idx_type& info, 51 FloatComplexSVD (const FloatComplexMatrix& a, octave_idx_type& info,
48 SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) 52 SVD::type svd_type = SVD::std,
53 SVD::driver svd_driver = SVD::GESVD)
54 : type_computed (), sigma (), left_sm (), right_sm ()
49 { 55 {
50 info = init (a, svd_type, svd_driver); 56 info = init (a, svd_type, svd_driver);
51 } 57 }
52 58
53 FloatComplexSVD (const FloatComplexSVD& a) 59 FloatComplexSVD (const FloatComplexSVD& a)
54 : type_computed (a.type_computed), 60 : type_computed (a.type_computed), sigma (a.sigma),
55 sigma (a.sigma), left_sm (a.left_sm), right_sm (a.right_sm) { } 61 left_sm (a.left_sm), right_sm (a.right_sm)
62 { }
56 63
57 FloatComplexSVD& operator = (const FloatComplexSVD& a) 64 FloatComplexSVD& operator = (const FloatComplexSVD& a)
58 { 65 {
59 if (this != &a) 66 if (this != &a)
60 { 67 {