Mercurial > hg > octave-lyh
comparison liboctave/fCmplxSCHUR.cc @ 11498:367bfee35ba0
data member initialization fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 02:37:45 -0500 |
parents | 8a5e980da6aa |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11497:7bddd70bc838 | 11498:367bfee35ba0 |
---|---|
147 return info; | 147 return info; |
148 } | 148 } |
149 | 149 |
150 FloatComplexSCHUR::FloatComplexSCHUR (const FloatComplexMatrix& s, | 150 FloatComplexSCHUR::FloatComplexSCHUR (const FloatComplexMatrix& s, |
151 const FloatComplexMatrix& u) | 151 const FloatComplexMatrix& u) |
152 : schur_mat (s), unitary_mat (u) | 152 : schur_mat (s), unitary_mat (u), selector (0) |
153 { | 153 { |
154 octave_idx_type n = s.rows (); | 154 octave_idx_type n = s.rows (); |
155 if (s.columns () != n || u.rows () != n || u.columns () != n) | 155 if (s.columns () != n || u.rows () != n || u.columns () != n) |
156 (*current_liboctave_error_handler) | 156 (*current_liboctave_error_handler) |
157 ("schur: inconsistent matrix dimensions"); | 157 ("schur: inconsistent matrix dimensions"); |
158 } | 158 } |
159 | 159 |
160 FloatComplexSCHUR::FloatComplexSCHUR (const FloatSCHUR& s) | 160 FloatComplexSCHUR::FloatComplexSCHUR (const FloatSCHUR& s) |
161 : schur_mat (s.schur_matrix ()), unitary_mat (s.unitary_matrix ()) | 161 : schur_mat (s.schur_matrix ()), unitary_mat (s.unitary_matrix ()), |
162 selector (0) | |
162 { | 163 { |
163 octave_idx_type n = schur_mat.rows (); | 164 octave_idx_type n = schur_mat.rows (); |
164 if (n > 0) | 165 if (n > 0) |
165 { | 166 { |
166 OCTAVE_LOCAL_BUFFER (float, c, n-1); | 167 OCTAVE_LOCAL_BUFFER (float, c, n-1); |