Mercurial > hg > octave-lyh
diff liboctave/fCmplxQRP.cc @ 9713:7918eb15040c
refactor the QR classes onto a templated base
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 12 Oct 2009 10:42:49 +0200 |
parents | eb63fbe60fab |
children | 4c0cdbe0acca |
line wrap: on
line diff
--- a/liboctave/fCmplxQRP.cc +++ b/liboctave/fCmplxQRP.cc @@ -42,16 +42,16 @@ // It would be best to share some of this code with FloatComplexQR class... -FloatComplexQRP::FloatComplexQRP (const FloatComplexMatrix& a, QR::type qr_type) +FloatComplexQRP::FloatComplexQRP (const FloatComplexMatrix& a, qr_type_t qr_type) : FloatComplexQR (), p () { init (a, qr_type); } void -FloatComplexQRP::init (const FloatComplexMatrix& a, QR::type qr_type) +FloatComplexQRP::init (const FloatComplexMatrix& a, qr_type_t qr_type) { - assert (qr_type != QR::raw); + assert (qr_type != qr_type_raw); octave_idx_type m = a.rows (); octave_idx_type n = a.cols (); @@ -62,7 +62,7 @@ octave_idx_type info = 0; FloatComplexMatrix afact = a; - if (m > n && qr_type == QR::std) + if (m > n && qr_type == qr_type_std) afact.resize (m, m); MArray<octave_idx_type> jpvt (n, 0);