CmplxQR.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_ComplexQR_h)
00025 #define octave_ComplexQR_h 1
00026 
00027 #include <iosfwd>
00028 
00029 #include "CMatrix.h"
00030 #include "CColVector.h"
00031 #include "CRowVector.h"
00032 #include "base-qr.h"
00033 
00034 
00035 class
00036 OCTAVE_API
00037 ComplexQR : public base_qr<ComplexMatrix>
00038 {
00039 public:
00040 
00041   ComplexQR (void) : base_qr<ComplexMatrix> () { }
00042 
00043   ComplexQR (const ComplexMatrix&, qr_type_t = qr_type_std);
00044 
00045   ComplexQR (const ComplexMatrix& qx, const ComplexMatrix& rx)
00046     : base_qr<ComplexMatrix> (qx, rx) { }
00047 
00048   ComplexQR (const ComplexQR& a) : base_qr<ComplexMatrix> (a) { }
00049 
00050   void init (const ComplexMatrix&, qr_type_t = qr_type_std);
00051 
00052   void update (const ComplexColumnVector& u, const ComplexColumnVector& v);
00053 
00054   void update (const ComplexMatrix& u, const ComplexMatrix& v);
00055 
00056   void insert_col (const ComplexColumnVector& u, octave_idx_type j);
00057 
00058   void insert_col (const ComplexMatrix& u, const Array<octave_idx_type>& j);
00059 
00060   void delete_col (octave_idx_type j);
00061 
00062   void delete_col (const Array<octave_idx_type>& j);
00063 
00064   void insert_row (const ComplexRowVector& u, octave_idx_type j);
00065 
00066   void delete_row (octave_idx_type j);
00067 
00068   void shift_cols (octave_idx_type i, octave_idx_type j);
00069 
00070 protected:
00071 
00072   void form (octave_idx_type n, ComplexMatrix& afact,
00073              Complex *tau, qr_type_t qr_type);
00074 };
00075 
00076 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines