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
floatQR.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_floatQR_h)
25 #define octave_floatQR_h 1
26 
27 #include <iosfwd>
28 
29 #include "fMatrix.h"
30 #include "fColVector.h"
31 #include "fRowVector.h"
32 #include "base-qr.h"
33 
34 class
35 OCTAVE_API
37 {
38 public:
39 
40  FloatQR (void) : base_qr<FloatMatrix> () { }
41 
43 
44  FloatQR (const FloatMatrix& qx, const FloatMatrix& rx)
45  : base_qr<FloatMatrix> (qx, rx) { }
46 
47  FloatQR (const FloatQR& a) : base_qr<FloatMatrix> (a) { }
48 
49  void init (const FloatMatrix&, qr_type_t);
50 
51  void update (const FloatColumnVector& u, const FloatColumnVector& v);
52 
53  void update (const FloatMatrix& u, const FloatMatrix& v);
54 
55  void insert_col (const FloatColumnVector& u, octave_idx_type j);
56 
57  void insert_col (const FloatMatrix& u, const Array<octave_idx_type>& j);
58 
59  void delete_col (octave_idx_type j);
60 
61  void delete_col (const Array<octave_idx_type>& j);
62 
63  void insert_row (const FloatRowVector& u, octave_idx_type j);
64 
65  void delete_row (octave_idx_type j);
66 
67  void shift_cols (octave_idx_type i, octave_idx_type j);
68 
69 protected:
70 
71  void form (octave_idx_type n, FloatMatrix& afact,
72  float *tau, qr_type_t qr_type);
73 };
74 
75 #endif
FloatQR(void)
Definition: floatQR.h:40
qr_type_t
Definition: base-qr.h:30
FloatQR(const FloatMatrix &qx, const FloatMatrix &rx)
Definition: floatQR.h:44
FloatQR(const FloatQR &a)
Definition: floatQR.h:47