GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmplxQR.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1994-2015 John W. Eaton
4 Copyright (C) 2008-2009 Jaroslav Hajek
5 
6 This file is part of Octave.
7 
8 Octave is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if !defined (octave_CmplxQR_h)
25 #define octave_CmplxQR_h 1
26 
27 #include <iosfwd>
28 
29 #include "CMatrix.h"
30 #include "CColVector.h"
31 #include "CRowVector.h"
32 #include "base-qr.h"
33 
34 
35 class
36 OCTAVE_API
38 {
39 public:
40 
41  ComplexQR (void) : base_qr<ComplexMatrix> () { }
42 
44 
45  ComplexQR (const ComplexMatrix& qx, const ComplexMatrix& rx)
46  : base_qr<ComplexMatrix> (qx, rx) { }
47 
48  ComplexQR (const ComplexQR& a) : base_qr<ComplexMatrix> (a) { }
49 
50  void init (const ComplexMatrix&, qr_type_t = qr_type_std);
51 
52  void update (const ComplexColumnVector& u, const ComplexColumnVector& v);
53 
54  void update (const ComplexMatrix& u, const ComplexMatrix& v);
55 
56  void insert_col (const ComplexColumnVector& u, octave_idx_type j);
57 
58  void insert_col (const ComplexMatrix& u, const Array<octave_idx_type>& j);
59 
60  void delete_col (octave_idx_type j);
61 
62  void delete_col (const Array<octave_idx_type>& j);
63 
64  void insert_row (const ComplexRowVector& u, octave_idx_type j);
65 
66  void delete_row (octave_idx_type j);
67 
68  void shift_cols (octave_idx_type i, octave_idx_type j);
69 
70 protected:
71 
72  void form (octave_idx_type n, ComplexMatrix& afact,
73  Complex *tau, qr_type_t qr_type);
74 };
75 
76 #endif
ComplexQR(const ComplexQR &a)
Definition: CmplxQR.h:48
ComplexQR(const ComplexMatrix &qx, const ComplexMatrix &rx)
Definition: CmplxQR.h:45
ComplexQR(void)
Definition: CmplxQR.h:41
qr_type_t
Definition: base-qr.h:30
std::complex< double > Complex
Definition: oct-cmplx.h:29