Mercurial > octave
diff liboctave/dbleQR.h @ 8547:d66c9b6e506a
imported patch qrupdate.diff
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 20 Jan 2009 21:16:42 +0100 |
parents | efccca5f2ad7 |
children | a6edd5c23cb5 |
line wrap: on
line diff
--- a/liboctave/dbleQR.h Tue Jan 20 21:15:17 2009 +0100 +++ b/liboctave/dbleQR.h Tue Jan 20 21:16:42 2009 +0100 @@ -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_QR_h) #define octave_QR_h 1 @@ -71,19 +70,27 @@ Matrix R (void) const { return r; } +#ifdef HAVE_QRUPDATE + + void update (const ColumnVector& u, const ColumnVector& v); + void update (const Matrix& u, const Matrix& v); - void insert_col (const Matrix& u, octave_idx_type j); + void insert_col (const ColumnVector& u, octave_idx_type j); + + void insert_col (const Matrix& u, const Array<octave_idx_type>& j); void delete_col (octave_idx_type j); - void insert_row (const Matrix& u, octave_idx_type j); + void delete_col (const Array<octave_idx_type>& j); + + void insert_row (const RowVector& 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 QR&);