Mercurial > jwe > octave
comparison liboctave/numeric/SparseCmplxQR.h @ 21153:9c61ab1f7588
eliminate unnecessary qrsolve functions
* SparseCmplxQR.cc, SparseCmplxQR.h, SparseQR.cc, SparseQR.h
(qrsolve): Eliminate versions that accept Matrix and ComplexMatrix
arguments in favor of MArray<double> and MArray<Complex>.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 29 Jan 2016 16:27:54 -0500 |
parents | e06e600f396a |
children |
comparison
equal
deleted
inserted
replaced
21152:8ad3907b8fad | 21153:9c61ab1f7588 |
---|---|
126 | 126 |
127 ComplexMatrix C (const ComplexMatrix &b) const { return rep->C(b); } | 127 ComplexMatrix C (const ComplexMatrix &b) const { return rep->C(b); } |
128 | 128 |
129 ComplexMatrix Q (void) const { return rep->Q (); } | 129 ComplexMatrix Q (void) const { return rep->Q (); } |
130 | 130 |
131 friend ComplexMatrix qrsolve (const SparseComplexMatrix &a, const Matrix &b, | 131 friend ComplexMatrix qrsolve (const SparseComplexMatrix &a, |
132 const MArray<double> &b, | |
132 octave_idx_type &info); | 133 octave_idx_type &info); |
133 | 134 |
134 friend SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, | 135 friend SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, |
135 const SparseMatrix &b, | 136 const SparseMatrix &b, |
136 octave_idx_type &info); | 137 octave_idx_type &info); |
137 | 138 |
138 friend ComplexMatrix qrsolve (const SparseComplexMatrix &a, | 139 friend ComplexMatrix qrsolve (const SparseComplexMatrix &a, |
139 const ComplexMatrix &b, | 140 const MArray<Complex> &b, |
140 octave_idx_type &info); | 141 octave_idx_type &info); |
141 | 142 |
142 friend SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, | 143 friend SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, |
143 const SparseComplexMatrix &b, | 144 const SparseComplexMatrix &b, |
144 octave_idx_type &info); | 145 octave_idx_type &info); |
152 }; | 153 }; |
153 | 154 |
154 | 155 |
155 // Publish externally used friend functions. | 156 // Publish externally used friend functions. |
156 | 157 |
157 extern ComplexMatrix qrsolve (const SparseComplexMatrix &a, const Matrix &b, | |
158 octave_idx_type &info); | |
159 | |
160 extern ComplexMatrix qrsolve (const SparseComplexMatrix &a, | 158 extern ComplexMatrix qrsolve (const SparseComplexMatrix &a, |
161 const MArray<double> &b, | 159 const MArray<double> &b, |
162 octave_idx_type &info); | 160 octave_idx_type &info); |
163 | 161 |
164 extern SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, | 162 extern SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, |
165 const SparseMatrix &b, | 163 const SparseMatrix &b, |
166 octave_idx_type &info); | 164 octave_idx_type &info); |
167 | 165 |
168 extern ComplexMatrix qrsolve (const SparseComplexMatrix &a, | 166 extern ComplexMatrix qrsolve (const SparseComplexMatrix &a, |
169 const ComplexMatrix &b, | |
170 octave_idx_type &info); | |
171 | |
172 extern ComplexMatrix qrsolve (const SparseComplexMatrix &a, | |
173 const MArray<Complex> &b, | 167 const MArray<Complex> &b, |
174 octave_idx_type &info); | 168 octave_idx_type &info); |
175 | 169 |
176 extern SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, | 170 extern SparseComplexMatrix qrsolve (const SparseComplexMatrix &a, |
177 const SparseComplexMatrix &b, | 171 const SparseComplexMatrix &b, |