diff liboctave/CmplxQRP.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/CmplxQRP.cc	Sun Oct 11 15:27:51 2009 -0700
+++ b/liboctave/CmplxQRP.cc	Mon Oct 12 10:42:49 2009 +0200
@@ -42,16 +42,16 @@
 
 // It would be best to share some of this code with ComplexQR class...
 
-ComplexQRP::ComplexQRP (const ComplexMatrix& a, QR::type qr_type)
+ComplexQRP::ComplexQRP (const ComplexMatrix& a, qr_type_t qr_type)
   : ComplexQR (), p ()
 {
   init (a, qr_type);
 }
 
 void
-ComplexQRP::init (const ComplexMatrix& a, QR::type qr_type)
+ComplexQRP::init (const ComplexMatrix& 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;
 
   ComplexMatrix 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);