Mercurial > hg > octave-nkf
changeset 11498:367bfee35ba0
data member initialization fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 02:37:45 -0500 |
parents | 7bddd70bc838 |
children | 8f23b6757225 |
files | liboctave/ChangeLog liboctave/CmplxCHOL.h liboctave/CmplxGEPBAL.h liboctave/CmplxHESS.h liboctave/CmplxSCHUR.cc liboctave/CmplxSCHUR.h liboctave/CmplxSVD.h liboctave/EIG.h liboctave/SparseCmplxQR.cc liboctave/SparseQR.cc liboctave/dbleCHOL.h liboctave/dbleGEPBAL.h liboctave/dbleHESS.h liboctave/dbleSCHUR.cc liboctave/dbleSCHUR.h liboctave/dbleSVD.h liboctave/fCmplxCHOL.h liboctave/fCmplxGEPBAL.h liboctave/fCmplxHESS.h liboctave/fCmplxSCHUR.cc liboctave/fCmplxSCHUR.h liboctave/fCmplxSVD.h liboctave/fEIG.h liboctave/floatCHOL.h liboctave/floatGEPBAL.h liboctave/floatHESS.h liboctave/floatSCHUR.cc liboctave/floatSCHUR.h liboctave/floatSVD.h |
diffstat | 29 files changed, 355 insertions(+), 125 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,37 @@ +2011-01-13 John W. Eaton <jwe@octave.org> + + * CmplxCHOL.h (ComplexCHOL::ComplexCHOL): Initialize all data + members in constructor initialization lists. + * CmplxGEPBAL.h (ComplexGEPBALANCE::ComplexGEPBALANCE): Likewise. + * CmplxHESS.h (ComplexHESS::ComplexHESS): Likewise. + * CmplxSCHUR.h, CmplxSCHUR.cc (ComplexSCHUR::ComplexSCHUR): Likewise. + * CmplxSVD.h (ComplexSVD::ComplexSVD): Likewise. + * DET.h (base_det::base_det): Likewise. + * EIG.h (EIG::EIG): Likewise. + * SparseCmplxQR.cc + (SparseComplexQR::SparseComplexQR_rep::SparseComplexQR_rep): + Likewise. + * SparseQR.cc (SparseQR::SparseQR_rep::SparseQR_rep): Likewise. + * dbleCHOL.h (CHOL::CHOL): Likewise. + * dbleGEPBAL.h (GEPBALANCE::GEPBALANCE): Likewise. + * dbleHESS.h (HESS::HESS): Likewise. + * dbleSCHUR.h, dbleSCHUR.cc (SCHUR::SCHUR): Likewise. + * dbleSVD.h (SVD::SVD): Likewise. + * fCmplxCHOL.h (FloatComplexCHOL::FloatComplexCHOL): Likewise. + * fCmplxGEPBAL.h + (FloatComplexGEPBALANCE::FloatComplexGEPBALANCE): Likewise. + * fCmplxHESS.h (FloatComplexHESS::FloatComplexHESS): Likewise. + * fCmplxSCHUR.h, fCmplxSCHUR.cc + (FloatComplexSCHUR::FloatComplexSCHUR): Likewise. + * fCmplxSVD.h (FloatComplexSVD::FloatComplexSVD): + Likewise. + * fEIG.h (FloatEIG::FloatEIG): Likewise. + * floatCHOL.h (FloatCHOL::FloatCHOL): Likewise. + * floatGEPBAL.h (FloatGEPBALANCE::FloatGEPBALANCE): Likewise. + * floatHESS.h (FloatHESS::FloatHESS): Likewise. + * floatSCHUR.h, floatSCHUR.cc (FloatSCHUR::FloatSCHUR): Likewise. + * floatSVD.h (FloatSVD::FloatSVD): Likewise. + 2011-01-13 John W. Eaton <jwe@octave.org> * LSODE.cc, DASSL.cc, DASRT.cc, DASPK.cc, CmplxSVD.cc,
--- a/liboctave/CmplxCHOL.h +++ b/liboctave/CmplxCHOL.h @@ -36,11 +36,17 @@ { public: - ComplexCHOL (void) : chol_mat () { } + ComplexCHOL (void) : chol_mat (), xrcond (0) { } - ComplexCHOL (const ComplexMatrix& a, bool calc_cond = false) { init (a, calc_cond); } + ComplexCHOL (const ComplexMatrix& a, bool calc_cond = false) + : chol_mat (), xrcond (0) + { + init (a, calc_cond); + } - ComplexCHOL (const ComplexMatrix& a, octave_idx_type& info, bool calc_cond = false) + ComplexCHOL (const ComplexMatrix& a, octave_idx_type& info, + bool calc_cond = false) + : chol_mat (), xrcond (0) { info = init (a, calc_cond); }
--- a/liboctave/CmplxGEPBAL.h +++ b/liboctave/CmplxGEPBAL.h @@ -36,16 +36,20 @@ { public: - ComplexGEPBALANCE (void) : balanced_mat (), balancing_mat () { } + ComplexGEPBALANCE (void) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () + { } - ComplexGEPBALANCE (const ComplexMatrix& a, const ComplexMatrix& b, const std::string& balance_job) + ComplexGEPBALANCE (const ComplexMatrix& a, const ComplexMatrix& b, + const std::string& balance_job) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () { init (a, b, balance_job); } ComplexGEPBALANCE (const ComplexGEPBALANCE& a) : balanced_mat (a.balanced_mat), balanced_mat2 (a.balanced_mat2), - balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { } + balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { } ComplexGEPBALANCE& operator = (const ComplexGEPBALANCE& a) {
--- a/liboctave/CmplxHESS.h +++ b/liboctave/CmplxHESS.h @@ -36,9 +36,17 @@ ComplexHESS (void) : hess_mat (), unitary_hess_mat () { } - ComplexHESS (const ComplexMatrix& a) { init (a); } + ComplexHESS (const ComplexMatrix& a) + : hess_mat (), unitary_hess_mat () + { + init (a); + } - ComplexHESS (const ComplexMatrix& a, octave_idx_type& info) { info = init (a); } + ComplexHESS (const ComplexMatrix& a, octave_idx_type& info) + : hess_mat (), unitary_hess_mat () + { + info = init (a); + } ComplexHESS (const ComplexHESS& a) : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
--- a/liboctave/CmplxSCHUR.cc +++ b/liboctave/CmplxSCHUR.cc @@ -148,9 +148,8 @@ return info; } -ComplexSCHUR::ComplexSCHUR (const ComplexMatrix& s, - const ComplexMatrix& u) -: schur_mat (s), unitary_mat (u) +ComplexSCHUR::ComplexSCHUR (const ComplexMatrix& s, const ComplexMatrix& u) + : schur_mat (s), unitary_mat (u), selector (0) { octave_idx_type n = s.rows (); if (s.columns () != n || u.rows () != n || u.columns () != n) @@ -159,7 +158,8 @@ } ComplexSCHUR::ComplexSCHUR (const SCHUR& s) -: schur_mat (s.schur_matrix ()), unitary_mat (s.unitary_matrix ()) + : schur_mat (s.schur_matrix ()), unitary_mat (s.unitary_matrix ()), + selector (0) { octave_idx_type n = schur_mat.rows (); if (n > 0)
--- a/liboctave/CmplxSCHUR.h +++ b/liboctave/CmplxSCHUR.h @@ -36,19 +36,26 @@ { public: - ComplexSCHUR (void) - : schur_mat (), unitary_mat () { } + ComplexSCHUR (void) : schur_mat (), unitary_mat (), selector (0) { } ComplexSCHUR (const ComplexMatrix& a, const std::string& ord, bool calc_unitary = true) - : schur_mat (), unitary_mat () { init (a, ord, calc_unitary); } + : schur_mat (), unitary_mat (), selector (0) + { + init (a, ord, calc_unitary); + } - ComplexSCHUR (const ComplexMatrix& a, const std::string& ord, octave_idx_type& info, + ComplexSCHUR (const ComplexMatrix& a, const std::string& ord, + octave_idx_type& info, bool calc_unitary = true) - : schur_mat (), unitary_mat () { info = init (a, ord, calc_unitary); } + : schur_mat (), unitary_mat (), selector (0) + { + info = init (a, ord, calc_unitary); + } ComplexSCHUR (const ComplexSCHUR& a) - : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) { } + : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat), selector (0) + { } ComplexSCHUR (const ComplexMatrix& s, const ComplexMatrix& u);
--- a/liboctave/CmplxSVD.h +++ b/liboctave/CmplxSVD.h @@ -36,23 +36,29 @@ { public: - ComplexSVD (void) { } + ComplexSVD (void) + : type_computed (), sigma (), left_sm (), right_sm () + { } - ComplexSVD (const ComplexMatrix& a, - SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) + ComplexSVD (const ComplexMatrix& a, SVD::type svd_type = SVD::std, + SVD::driver svd_driver = SVD::GESVD) + : type_computed (), sigma (), left_sm (), right_sm () { - { init (a, svd_type, svd_driver); } + init (a, svd_type, svd_driver); } ComplexSVD (const ComplexMatrix& a, octave_idx_type& info, - SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) + SVD::type svd_type = SVD::std, + SVD::driver svd_driver = SVD::GESVD) + : type_computed (), sigma (), left_sm (), right_sm () { info = init (a, svd_type, svd_driver); } ComplexSVD (const ComplexSVD& 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) + { } ComplexSVD& operator = (const ComplexSVD& a) {
--- a/liboctave/EIG.h +++ b/liboctave/EIG.h @@ -39,32 +39,59 @@ public: - EIG (void) - : lambda (), v () { } + EIG (void) : lambda (), v () { } EIG (const Matrix& a, bool calc_eigenvectors = true) - { init (a, calc_eigenvectors); } + : lambda (), v () + { + init (a, calc_eigenvectors); + } EIG (const Matrix& a, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, calc_eigenvectors); } + : lambda (), v () + { + info = init (a, calc_eigenvectors); + } EIG (const Matrix& a, const Matrix& b, bool calc_eigenvectors = true) - { init (a, b, calc_eigenvectors); } + : lambda (), v () + { + init (a, b, calc_eigenvectors); + } - EIG (const Matrix& a, const Matrix& b, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, b, calc_eigenvectors); } + EIG (const Matrix& a, const Matrix& b, octave_idx_type& info, + bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, b, calc_eigenvectors); + } EIG (const ComplexMatrix& a, bool calc_eigenvectors = true) - { init (a, calc_eigenvectors); } + : lambda (), v () + { + init (a, calc_eigenvectors); + } - EIG (const ComplexMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, calc_eigenvectors); } + EIG (const ComplexMatrix& a, octave_idx_type& info, + bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, calc_eigenvectors); + } - EIG (const ComplexMatrix& a, const ComplexMatrix& b, bool calc_eigenvectors = true) - { init (a, b, calc_eigenvectors); } + EIG (const ComplexMatrix& a, const ComplexMatrix& b, + bool calc_eigenvectors = true) + : lambda (), v () + { + init (a, b, calc_eigenvectors); + } - EIG (const ComplexMatrix& a, const ComplexMatrix& b, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, b, calc_eigenvectors); } + EIG (const ComplexMatrix& a, const ComplexMatrix& b, + octave_idx_type& info, bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, b, calc_eigenvectors); + } EIG (const EIG& a) : lambda (a.lambda), v (a.v) { } @@ -93,14 +120,27 @@ ComplexMatrix v; octave_idx_type init (const Matrix& a, bool calc_eigenvectors); - octave_idx_type init (const Matrix& a, const Matrix& b, bool calc_eigenvectors); + + octave_idx_type init (const Matrix& a, const Matrix& b, + bool calc_eigenvectors); + octave_idx_type init (const ComplexMatrix& a, bool calc_eigenvectors); - octave_idx_type init (const ComplexMatrix& a, const ComplexMatrix& b, bool calc_eigenvectors); + + octave_idx_type init (const ComplexMatrix& a, const ComplexMatrix& b, + bool calc_eigenvectors); octave_idx_type symmetric_init (const Matrix& a, bool calc_eigenvectors); - octave_idx_type symmetric_init (const Matrix& a, const Matrix& b, bool calc_eigenvectors); - octave_idx_type hermitian_init (const ComplexMatrix& a, bool calc_eigenvectors); - octave_idx_type hermitian_init (const ComplexMatrix& a, const ComplexMatrix& b, bool calc_eigenvectors); + + octave_idx_type symmetric_init (const Matrix& a, const Matrix& b, + bool calc_eigenvectors); + + octave_idx_type hermitian_init (const ComplexMatrix& a, + bool calc_eigenvectors); + + octave_idx_type hermitian_init (const ComplexMatrix& a, + const ComplexMatrix& b, + bool calc_eigenvectors); + }; #endif
--- a/liboctave/SparseCmplxQR.cc +++ b/liboctave/SparseCmplxQR.cc @@ -49,7 +49,8 @@ #endif SparseComplexQR::SparseComplexQR_rep::SparseComplexQR_rep -(GCC_ATTR_UNUSED const SparseComplexMatrix& a, GCC_ATTR_UNUSED int order) + (GCC_ATTR_UNUSED const SparseComplexMatrix& a, GCC_ATTR_UNUSED int order) + : count (1), nrows (0), N (0), S (0) { #ifdef HAVE_CXSPARSE CXSPARSE_ZNAME () A;
--- a/liboctave/SparseQR.cc +++ b/liboctave/SparseQR.cc @@ -30,6 +30,7 @@ #include "oct-locbuf.h" SparseQR::SparseQR_rep::SparseQR_rep (const SparseMatrix& a, int order) + : count (1), nrows (0), N (0), S (0) { #ifdef HAVE_CXSPARSE CXSPARSE_DNAME () A;
--- a/liboctave/dbleCHOL.h +++ b/liboctave/dbleCHOL.h @@ -36,12 +36,19 @@ { public: - CHOL (void) : chol_mat () { } + CHOL (void) : chol_mat (), xrcond (0) { } - CHOL (const Matrix& a, bool calc_cond = false) { init (a, calc_cond); } + CHOL (const Matrix& a, bool calc_cond = false) + : chol_mat (), xrcond (0) + { + init (a, calc_cond); + } CHOL (const Matrix& a, octave_idx_type& info, bool calc_cond = false) - { info = init (a, calc_cond); } + : chol_mat (), xrcond (0) + { + info = init (a, calc_cond); + } CHOL (const CHOL& a) : chol_mat (a.chol_mat), xrcond (a.xrcond) { }
--- a/liboctave/dbleGEPBAL.h +++ b/liboctave/dbleGEPBAL.h @@ -35,16 +35,20 @@ { public: - GEPBALANCE (void) : balanced_mat (), balancing_mat () { } + GEPBALANCE (void) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () + { } GEPBALANCE (const Matrix& a, const Matrix& b, const std::string& balance_job) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () { init (a, b, balance_job); } GEPBALANCE (const GEPBALANCE& a) : balanced_mat (a.balanced_mat), balanced_mat2 (a.balanced_mat2), - balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { } + balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) + { } GEPBALANCE& operator = (const GEPBALANCE& a) {
--- a/liboctave/dbleHESS.h +++ b/liboctave/dbleHESS.h @@ -36,9 +36,13 @@ HESS (void) : hess_mat (), unitary_hess_mat () { } - HESS (const Matrix& a) { init (a); } + HESS (const Matrix& a) : hess_mat (), unitary_hess_mat () { init (a); } - HESS (const Matrix& a, octave_idx_type& info) { info = init (a); } + HESS (const Matrix& a, octave_idx_type& info) + : hess_mat (), unitary_hess_mat () + { + info = init (a); + } HESS (const HESS& a) : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
--- a/liboctave/dbleSCHUR.cc +++ b/liboctave/dbleSCHUR.cc @@ -158,7 +158,7 @@ } SCHUR::SCHUR (const Matrix& s, const Matrix& u) -: schur_mat (s), unitary_mat (u) + : schur_mat (s), unitary_mat (u), selector (0) { octave_idx_type n = s.rows (); if (s.columns () != n || u.rows () != n || u.columns () != n)
--- a/liboctave/dbleSCHUR.h +++ b/liboctave/dbleSCHUR.h @@ -35,18 +35,24 @@ { public: - SCHUR (void) - : schur_mat (), unitary_mat () { } + SCHUR (void) : schur_mat (), unitary_mat (), selector (0) { } SCHUR (const Matrix& a, const std::string& ord, bool calc_unitary = true) - : schur_mat (), unitary_mat () { init (a, ord, calc_unitary); } + : schur_mat (), unitary_mat (), selector (0) + { + init (a, ord, calc_unitary); + } SCHUR (const Matrix& a, const std::string& ord, int& info, bool calc_unitary = true) - : schur_mat (), unitary_mat () { info = init (a, ord, calc_unitary); } + : schur_mat (), unitary_mat (), selector (0) + { + info = init (a, ord, calc_unitary); + } SCHUR (const SCHUR& a) - : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) { } + : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat), selector (0) + { } SCHUR (const Matrix& s, const Matrix& u);
--- a/liboctave/dbleSVD.h +++ b/liboctave/dbleSVD.h @@ -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) {
--- a/liboctave/fCmplxCHOL.h +++ b/liboctave/fCmplxCHOL.h @@ -36,11 +36,17 @@ { public: - FloatComplexCHOL (void) : chol_mat () { } + FloatComplexCHOL (void) : chol_mat (), xrcond (0) { } - FloatComplexCHOL (const FloatComplexMatrix& a, bool calc_cond = false) { init (a, calc_cond); } + FloatComplexCHOL (const FloatComplexMatrix& a, bool calc_cond = false) + : chol_mat (), xrcond (0) + { + init (a, calc_cond); + } - FloatComplexCHOL (const FloatComplexMatrix& a, octave_idx_type& info, bool calc_cond = false) + FloatComplexCHOL (const FloatComplexMatrix& a, octave_idx_type& info, + bool calc_cond = false) + : chol_mat (), xrcond (0) { info = init (a, calc_cond); } @@ -71,13 +77,15 @@ octave_idx_type downdate (const FloatComplexColumnVector& u); - octave_idx_type insert_sym (const FloatComplexColumnVector& u, octave_idx_type j); + octave_idx_type insert_sym (const FloatComplexColumnVector& u, + octave_idx_type j); void delete_sym (octave_idx_type j); void shift_sym (octave_idx_type i, octave_idx_type j); - friend OCTAVE_API std::ostream& operator << (std::ostream& os, const FloatComplexCHOL& a); + friend OCTAVE_API std::ostream& operator << (std::ostream& os, + const FloatComplexCHOL& a); private:
--- a/liboctave/fCmplxGEPBAL.h +++ b/liboctave/fCmplxGEPBAL.h @@ -36,16 +36,22 @@ { public: - FloatComplexGEPBALANCE (void) : balanced_mat (), balancing_mat () { } + FloatComplexGEPBALANCE (void) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () + { } - FloatComplexGEPBALANCE (const FloatComplexMatrix& a, const FloatComplexMatrix& b, const std::string& balance_job) + FloatComplexGEPBALANCE (const FloatComplexMatrix& a, + const FloatComplexMatrix& b, + const std::string& balance_job) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () { init (a, b, balance_job); } FloatComplexGEPBALANCE (const FloatComplexGEPBALANCE& a) : balanced_mat (a.balanced_mat), balanced_mat2 (a.balanced_mat2), - balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { } + balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) + { } FloatComplexGEPBALANCE& operator = (const FloatComplexGEPBALANCE& a) {
--- a/liboctave/fCmplxHESS.h +++ b/liboctave/fCmplxHESS.h @@ -36,9 +36,17 @@ FloatComplexHESS (void) : hess_mat (), unitary_hess_mat () { } - FloatComplexHESS (const FloatComplexMatrix& a) { init (a); } + FloatComplexHESS (const FloatComplexMatrix& a) + : hess_mat (), unitary_hess_mat () + { + init (a); + } - FloatComplexHESS (const FloatComplexMatrix& a, octave_idx_type& info) { info = init (a); } + FloatComplexHESS (const FloatComplexMatrix& a, octave_idx_type& info) + : hess_mat (), unitary_hess_mat () + { + info = init (a); + } FloatComplexHESS (const FloatComplexHESS& a) : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
--- a/liboctave/fCmplxSCHUR.cc +++ b/liboctave/fCmplxSCHUR.cc @@ -149,7 +149,7 @@ FloatComplexSCHUR::FloatComplexSCHUR (const FloatComplexMatrix& s, const FloatComplexMatrix& u) -: schur_mat (s), unitary_mat (u) + : schur_mat (s), unitary_mat (u), selector (0) { octave_idx_type n = s.rows (); if (s.columns () != n || u.rows () != n || u.columns () != n) @@ -158,7 +158,8 @@ } FloatComplexSCHUR::FloatComplexSCHUR (const FloatSCHUR& s) -: schur_mat (s.schur_matrix ()), unitary_mat (s.unitary_matrix ()) + : schur_mat (s.schur_matrix ()), unitary_mat (s.unitary_matrix ()), + selector (0) { octave_idx_type n = schur_mat.rows (); if (n > 0)
--- a/liboctave/fCmplxSCHUR.h +++ b/liboctave/fCmplxSCHUR.h @@ -36,19 +36,25 @@ { public: - FloatComplexSCHUR (void) - : schur_mat (), unitary_mat () { } + FloatComplexSCHUR (void) : schur_mat (), unitary_mat (), selector (0) { } FloatComplexSCHUR (const FloatComplexMatrix& a, const std::string& ord, bool calc_unitary = true) - : schur_mat (), unitary_mat () { init (a, ord, calc_unitary); } + : schur_mat (), unitary_mat (), selector (0) + { + init (a, ord, calc_unitary); + } - FloatComplexSCHUR (const FloatComplexMatrix& a, const std::string& ord, octave_idx_type& info, - bool calc_unitary = true) - : schur_mat (), unitary_mat () { info = init (a, ord, calc_unitary); } + FloatComplexSCHUR (const FloatComplexMatrix& a, const std::string& ord, + octave_idx_type& info, bool calc_unitary = true) + : schur_mat (), unitary_mat (), selector (0) + { + info = init (a, ord, calc_unitary); + } FloatComplexSCHUR (const FloatComplexSCHUR& a) - : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) { } + : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat), selector (0) + { } FloatComplexSCHUR (const FloatComplexMatrix& s, const FloatComplexMatrix& u);
--- a/liboctave/fCmplxSVD.h +++ b/liboctave/fCmplxSVD.h @@ -36,23 +36,30 @@ { public: - FloatComplexSVD (void) { } + FloatComplexSVD (void) + : type_computed (), sigma (), left_sm (), right_sm () + { } FloatComplexSVD (const FloatComplexMatrix& a, - SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) + SVD::type svd_type = SVD::std, + SVD::driver svd_driver = SVD::GESVD) + : type_computed (), sigma (), left_sm (), right_sm () { init (a, svd_type, svd_driver); } FloatComplexSVD (const FloatComplexMatrix& a, octave_idx_type& info, - SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) + SVD::type svd_type = SVD::std, + SVD::driver svd_driver = SVD::GESVD) + : type_computed (), sigma (), left_sm (), right_sm () { info = init (a, svd_type, svd_driver); } FloatComplexSVD (const FloatComplexSVD& 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) + { } FloatComplexSVD& operator = (const FloatComplexSVD& a) {
--- a/liboctave/fEIG.h +++ b/liboctave/fEIG.h @@ -43,31 +43,60 @@ : lambda (), v () { } FloatEIG (const FloatMatrix& a, bool calc_eigenvectors = true) - { init (a, calc_eigenvectors); } + : lambda (), v () + { + init (a, calc_eigenvectors); + } - FloatEIG (const FloatMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, calc_eigenvectors); } + FloatEIG (const FloatMatrix& a, octave_idx_type& info, + bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, calc_eigenvectors); + } - FloatEIG (const FloatMatrix& a, const FloatMatrix& b, bool calc_eigenvectors = true) - { init (a, b, calc_eigenvectors); } + FloatEIG (const FloatMatrix& a, const FloatMatrix& b, + bool calc_eigenvectors = true) + : lambda (), v () + { + init (a, b, calc_eigenvectors); + } - FloatEIG (const FloatMatrix& a, const FloatMatrix& b, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, b, calc_eigenvectors); } + FloatEIG (const FloatMatrix& a, const FloatMatrix& b, octave_idx_type& info, + bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, b, calc_eigenvectors); + } FloatEIG (const FloatComplexMatrix& a, bool calc_eigenvectors = true) - { init (a, calc_eigenvectors); } + : lambda (), v () + { + init (a, calc_eigenvectors); + } - FloatEIG (const FloatComplexMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, calc_eigenvectors); } + FloatEIG (const FloatComplexMatrix& a, octave_idx_type& info, + bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, calc_eigenvectors); + } - FloatEIG (const FloatComplexMatrix& a, const FloatComplexMatrix& b, bool calc_eigenvectors = true) - { init (a, b, calc_eigenvectors); } + FloatEIG (const FloatComplexMatrix& a, const FloatComplexMatrix& b, + bool calc_eigenvectors = true) + : lambda (), v () + { + init (a, b, calc_eigenvectors); + } - FloatEIG (const FloatComplexMatrix& a, const FloatComplexMatrix& b, octave_idx_type& info, bool calc_eigenvectors = true) - { info = init (a, b, calc_eigenvectors); } + FloatEIG (const FloatComplexMatrix& a, const FloatComplexMatrix& b, + octave_idx_type& info, bool calc_eigenvectors = true) + : lambda (), v () + { + info = init (a, b, calc_eigenvectors); + } - FloatEIG (const FloatEIG& a) - : lambda (a.lambda), v (a.v) { } + FloatEIG (const FloatEIG& a) : lambda (a.lambda), v (a.v) { } FloatEIG& operator = (const FloatEIG& a) {
--- a/liboctave/floatCHOL.h +++ b/liboctave/floatCHOL.h @@ -36,12 +36,20 @@ { public: - FloatCHOL (void) : chol_mat () { } + FloatCHOL (void) : chol_mat (), xrcond (0) { } - FloatCHOL (const FloatMatrix& a, bool calc_cond = false) { init (a, calc_cond); } + FloatCHOL (const FloatMatrix& a, bool calc_cond = false) + : chol_mat (), xrcond (0) + { + init (a, calc_cond); + } - FloatCHOL (const FloatMatrix& a, octave_idx_type& info, bool calc_cond = false) - { info = init (a, calc_cond); } + FloatCHOL (const FloatMatrix& a, octave_idx_type& info, + bool calc_cond = false) + : chol_mat (), xrcond (0) + { + info = init (a, calc_cond); + } FloatCHOL (const FloatCHOL& a) : chol_mat (a.chol_mat), xrcond (a.xrcond) { }
--- a/liboctave/floatGEPBAL.h +++ b/liboctave/floatGEPBAL.h @@ -35,16 +35,19 @@ { public: - FloatGEPBALANCE (void) : balanced_mat (), balancing_mat () { } - - FloatGEPBALANCE (const FloatMatrix& a, const FloatMatrix& b, const std::string& balance_job) + FloatGEPBALANCE (void) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () + { } + FloatGEPBALANCE (const FloatMatrix& a, const FloatMatrix& b, + const std::string& balance_job) + : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 () { init (a, b, balance_job); } FloatGEPBALANCE (const FloatGEPBALANCE& a) : balanced_mat (a.balanced_mat), balanced_mat2 (a.balanced_mat2), - balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { } + balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { } FloatGEPBALANCE& operator = (const FloatGEPBALANCE& a) {
--- a/liboctave/floatHESS.h +++ b/liboctave/floatHESS.h @@ -36,9 +36,17 @@ FloatHESS (void) : hess_mat (), unitary_hess_mat () { } - FloatHESS (const FloatMatrix& a) { init (a); } + FloatHESS (const FloatMatrix& a) + : hess_mat (), unitary_hess_mat () + { + init (a); + } - FloatHESS (const FloatMatrix& a, octave_idx_type& info) { info = init (a); } + FloatHESS (const FloatMatrix& a, octave_idx_type& info) + : hess_mat (), unitary_hess_mat () + { + info = init (a); + } FloatHESS (const FloatHESS& a) : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
--- a/liboctave/floatSCHUR.cc +++ b/liboctave/floatSCHUR.cc @@ -149,7 +149,7 @@ } FloatSCHUR::FloatSCHUR (const FloatMatrix& s, const FloatMatrix& u) -: schur_mat (s), unitary_mat (u) + : schur_mat (s), unitary_mat (u), selector (0) { octave_idx_type n = s.rows (); if (s.columns () != n || u.rows () != n || u.columns () != n)
--- a/liboctave/floatSCHUR.h +++ b/liboctave/floatSCHUR.h @@ -35,18 +35,25 @@ { public: - FloatSCHUR (void) - : schur_mat (), unitary_mat () { } + FloatSCHUR (void) : schur_mat (), unitary_mat (), selector (0) { } - FloatSCHUR (const FloatMatrix& a, const std::string& ord, bool calc_unitary = true) - : schur_mat (), unitary_mat () { init (a, ord, calc_unitary); } + FloatSCHUR (const FloatMatrix& a, const std::string& ord, + bool calc_unitary = true) + : schur_mat (), unitary_mat (), selector (0) + { + init (a, ord, calc_unitary); + } FloatSCHUR (const FloatMatrix& a, const std::string& ord, int& info, - bool calc_unitary = true) - : schur_mat (), unitary_mat () { info = init (a, ord, calc_unitary); } + bool calc_unitary = true) + : schur_mat (), unitary_mat (), selector (0) + { + info = init (a, ord, calc_unitary); + } FloatSCHUR (const FloatSCHUR& a) - : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) { } + : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat), selector (0) + { } FloatSCHUR (const FloatMatrix& s, const FloatMatrix& u);
--- a/liboctave/floatSVD.h +++ b/liboctave/floatSVD.h @@ -36,21 +36,27 @@ { public: - FloatSVD (void) : sigma (), left_sm (), right_sm () { } + FloatSVD (void) : type_computed (), sigma (), left_sm (), right_sm () { } FloatSVD (const FloatMatrix& a, SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) - { init (a, svd_type, svd_driver); } + : type_computed (), sigma (), left_sm (), right_sm () + { + init (a, svd_type, svd_driver); + } FloatSVD (const FloatMatrix& a, octave_idx_type& info, - SVD::type svd_type = SVD::std, SVD::driver svd_driver = SVD::GESVD) + SVD::type svd_type = SVD::std, + SVD::driver svd_driver = SVD::GESVD) + : type_computed (), sigma (), left_sm (), right_sm () { info = init (a, svd_type, svd_driver); } FloatSVD (const FloatSVD& 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) + { } FloatSVD& operator = (const FloatSVD& a) {