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
dbleQR.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_dbleQR_h)
25 #define octave_dbleQR_h 1
26 
27 #include <iosfwd>
28 
29 #include "dMatrix.h"
30 #include "dColVector.h"
31 #include "dRowVector.h"
32 #include "base-qr.h"
33 
34 class
35 OCTAVE_API
36 QR : public base_qr<Matrix>
37 {
38 public:
39 
40  // Import them here to allow the QR:: prefix.
41  typedef qr_type_t type;
42 
43  static const type std = qr_type_std;
44  static const type raw = qr_type_raw;
45  static const type economy = qr_type_economy;
46 
47  QR (void) : base_qr<Matrix> () { }
48 
49  QR (const Matrix&, qr_type_t = qr_type_std);
50 
51  QR (const Matrix& qx, const Matrix& rx)
52  : base_qr<Matrix> (qx, rx) { }
53 
54  QR (const QR& a) : base_qr<Matrix> (a) { }
55 
56  void init (const Matrix&, qr_type_t);
57 
58  void update (const ColumnVector& u, const ColumnVector& v);
59 
60  void update (const Matrix& u, const Matrix& v);
61 
62  void insert_col (const ColumnVector& u, octave_idx_type j);
63 
64  void insert_col (const Matrix& u, const Array<octave_idx_type>& j);
65 
66  void delete_col (octave_idx_type j);
67 
68  void delete_col (const Array<octave_idx_type>& j);
69 
70  void insert_row (const RowVector& u, octave_idx_type j);
71 
72  void delete_row (octave_idx_type j);
73 
74  void shift_cols (octave_idx_type i, octave_idx_type j);
75 
76 protected:
77 
78  void form (octave_idx_type n, Matrix& afact,
79  double *tau, qr_type_t qr_type);
80 };
81 
82 #endif
QR(const QR &a)
Definition: dbleQR.h:54
QR(const Matrix &qx, const Matrix &rx)
Definition: dbleQR.h:51
qr_type_t type
Definition: dbleQR.h:41
QR(void)
Definition: dbleQR.h:47
STL namespace.
qr_type_t
Definition: base-qr.h:30
Definition: dMatrix.h:35
Definition: dbleQR.h:34