Mercurial > octave-nkf
comparison liboctave/CmplxSVD.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 ComplexSVD | 35 ComplexSVD |
36 { | 36 { |
37 public: | 37 public: |
38 | 38 |
39 ComplexSVD (void) { } | 39 ComplexSVD (void) |
40 : type_computed (), sigma (), left_sm (), right_sm () | |
41 { } | |
40 | 42 |
41 ComplexSVD (const ComplexMatrix& a, | 43 ComplexSVD (const ComplexMatrix& a, SVD::type svd_type = SVD::std, |
42 SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) | 44 SVD::driver svd_driver = SVD::GESVD) |
45 : type_computed (), sigma (), left_sm (), right_sm () | |
43 { | 46 { |
44 { init (a, svd_type, svd_driver); } | 47 init (a, svd_type, svd_driver); |
45 } | 48 } |
46 | 49 |
47 ComplexSVD (const ComplexMatrix& a, octave_idx_type& info, | 50 ComplexSVD (const ComplexMatrix& a, octave_idx_type& info, |
48 SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) | 51 SVD::type svd_type = SVD::std, |
52 SVD::driver svd_driver = SVD::GESVD) | |
53 : type_computed (), sigma (), left_sm (), right_sm () | |
49 { | 54 { |
50 info = init (a, svd_type, svd_driver); | 55 info = init (a, svd_type, svd_driver); |
51 } | 56 } |
52 | 57 |
53 ComplexSVD (const ComplexSVD& a) | 58 ComplexSVD (const ComplexSVD& a) |
54 : type_computed (a.type_computed), | 59 : type_computed (a.type_computed), sigma (a.sigma), |
55 sigma (a.sigma), left_sm (a.left_sm), right_sm (a.right_sm) { } | 60 left_sm (a.left_sm), right_sm (a.right_sm) |
61 { } | |
56 | 62 |
57 ComplexSVD& operator = (const ComplexSVD& a) | 63 ComplexSVD& operator = (const ComplexSVD& a) |
58 { | 64 { |
59 if (this != &a) | 65 if (this != &a) |
60 { | 66 { |