floatQR.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 1994-2012 John W. Eaton
00004 Copyright (C) 2008-2009 Jaroslav Hajek
00005 
00006 This file is part of Octave.
00007 
00008 Octave is free software; you can redistribute it and/or modify it
00009 under the terms of the GNU General Public License as published by the
00010 Free Software Foundation; either version 3 of the License, or (at your
00011 option) any later version.
00012 
00013 Octave is distributed in the hope that it will be useful, but WITHOUT
00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00015 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00016 for more details.
00017 
00018 You should have received a copy of the GNU General Public License
00019 along with Octave; see the file COPYING.  If not, see
00020 <http://www.gnu.org/licenses/>.
00021 
00022 */
00023 
00024 #if !defined (octave_FloatQR_h)
00025 #define octave_FloatQR_h 1
00026 
00027 #include <iosfwd>
00028 
00029 #include "fMatrix.h"
00030 #include "fColVector.h"
00031 #include "fRowVector.h"
00032 #include "base-qr.h"
00033 
00034 class
00035 OCTAVE_API
00036 FloatQR : public base_qr<FloatMatrix>
00037 {
00038 public:
00039 
00040   FloatQR (void) : base_qr<FloatMatrix> () { }
00041 
00042   FloatQR (const FloatMatrix&, qr_type_t = qr_type_std);
00043 
00044   FloatQR (const FloatMatrix& qx, const FloatMatrix& rx)
00045     : base_qr<FloatMatrix> (qx, rx) { }
00046 
00047   FloatQR (const FloatQR& a) : base_qr<FloatMatrix> (a) { }
00048 
00049   void init (const FloatMatrix&, qr_type_t);
00050 
00051   void update (const FloatColumnVector& u, const FloatColumnVector& v);
00052 
00053   void update (const FloatMatrix& u, const FloatMatrix& v);
00054 
00055   void insert_col (const FloatColumnVector& u, octave_idx_type j);
00056 
00057   void insert_col (const FloatMatrix& u, const Array<octave_idx_type>& j);
00058 
00059   void delete_col (octave_idx_type j);
00060 
00061   void delete_col (const Array<octave_idx_type>& j);
00062 
00063   void insert_row (const FloatRowVector& u, octave_idx_type j);
00064 
00065   void delete_row (octave_idx_type j);
00066 
00067   void shift_cols (octave_idx_type i, octave_idx_type j);
00068 
00069 protected:
00070 
00071   void form (octave_idx_type n, FloatMatrix& afact,
00072              float *tau, qr_type_t qr_type);
00073 };
00074 
00075 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines