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
fCmplxQR.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 // updating/downdating by Jaroslav Hajek 2008
25 
26 #if !defined (octave_fCmplxQR_h)
27 #define octave_fCmplxQR_h 1
28 
29 #include <iosfwd>
30 
31 #include "fCMatrix.h"
32 #include "fCColVector.h"
33 #include "fCRowVector.h"
34 #include "base-qr.h"
35 
36 class
37 OCTAVE_API
39 {
40 public:
41 
43 
45 
47  : base_qr<FloatComplexMatrix> (qx, rx) { }
48 
50 
51  void init (const FloatComplexMatrix&, qr_type_t = qr_type_std);
52 
53  void update (const FloatComplexColumnVector& u,
54  const FloatComplexColumnVector& v);
55 
56  void update (const FloatComplexMatrix& u, const FloatComplexMatrix& v);
57 
58  void insert_col (const FloatComplexColumnVector& u, octave_idx_type j);
59 
60  void insert_col (const FloatComplexMatrix& u,
61  const Array<octave_idx_type>& j);
62 
63  void delete_col (octave_idx_type j);
64 
65  void delete_col (const Array<octave_idx_type>& j);
66 
67  void insert_row (const FloatComplexRowVector& u, octave_idx_type j);
68 
69  void delete_row (octave_idx_type j);
70 
71  void shift_cols (octave_idx_type i, octave_idx_type j);
72 
73 protected:
74 
75  void form (octave_idx_type n, FloatComplexMatrix& afact,
76  FloatComplex *tau, qr_type_t qr_type);
77 };
78 
79 #endif
FloatComplexQR(const FloatComplexMatrix &qx, const FloatComplexMatrix &rx)
Definition: fCmplxQR.h:46
qr_type_t
Definition: base-qr.h:30
FloatComplexQR(void)
Definition: fCmplxQR.h:42
FloatComplexQR(const FloatComplexQR &a)
Definition: fCmplxQR.h:49
std::complex< float > FloatComplex
Definition: oct-cmplx.h:30