diff liboctave/floatQR.h @ 8547:d66c9b6e506a

imported patch qrupdate.diff
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 20 Jan 2009 21:16:42 +0100
parents 39c1026191e9
children a6edd5c23cb5
line wrap: on
line diff
--- a/liboctave/floatQR.h
+++ b/liboctave/floatQR.h
@@ -2,6 +2,7 @@
 
 Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002, 2004, 2005, 2006,
               2007 John W. Eaton
+Copyright (C) 2008, 2009 Jaroslav Hajek
 
 This file is part of Octave.
 
@@ -21,8 +22,6 @@
 
 */
 
-// updating/downdating by Jaroslav Hajek 2008
-
 #if !defined (octave_FloatQR_h)
 #define octave_FloatQR_h 1
 
@@ -65,19 +64,27 @@
 
   FloatMatrix R (void) const { return r; }
 
+#ifdef HAVE_QRUPDATE
+
+  void update (const FloatColumnVector& u, const FloatColumnVector& v);
+
   void update (const FloatMatrix& u, const FloatMatrix& v);
 
-  void insert_col (const FloatMatrix& u, octave_idx_type j);
+  void insert_col (const FloatColumnVector& u, octave_idx_type j);
+
+  void insert_col (const FloatMatrix& u, const Array<octave_idx_type>& j);
 
   void delete_col (octave_idx_type j);
 
-  void insert_row (const FloatMatrix& u, octave_idx_type j);
+  void delete_col (const Array<octave_idx_type>& j);
+
+  void insert_row (const FloatRowVector& u, octave_idx_type j);
 
   void delete_row (octave_idx_type j);
 
   void shift_cols (octave_idx_type i, octave_idx_type j);
 
-  void economize (void);
+#endif
 
   friend std::ostream&  operator << (std::ostream&, const FloatQR&);