538
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
1011
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
538
|
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 2, or (at your option) any |
|
11 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, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
538
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexQRP_h) |
|
25 #define octave_ComplexQRP_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
538
|
31 class ostream; |
|
32 |
|
33 #include "CmplxQR.h" |
|
34 |
|
35 class ComplexQRP : public ComplexQR |
|
36 { |
|
37 public: |
|
38 |
|
39 ComplexQRP (void) {} |
|
40 |
|
41 ComplexQRP (const ComplexMatrix& A, QR::type qr_type = QR::std); |
|
42 |
|
43 ComplexQRP (const ComplexQRP& a); |
|
44 |
|
45 ComplexQRP& operator = (const ComplexQRP& a); |
|
46 |
|
47 Matrix P (void) const; |
|
48 |
|
49 friend ostream& operator << (ostream& os, const ComplexQRP& a); |
|
50 |
|
51 private: |
|
52 |
|
53 Matrix p; |
|
54 }; |
|
55 |
|
56 inline ComplexQRP::ComplexQRP (const ComplexQRP& a) : ComplexQR (a) |
|
57 { |
|
58 p = a.p; |
|
59 } |
|
60 |
|
61 inline ComplexQRP& ComplexQRP::operator = (const ComplexQRP& a) |
|
62 { |
|
63 ComplexQR::operator = (a); |
|
64 p = a.p; |
|
65 return *this; |
|
66 } |
|
67 |
|
68 inline Matrix ComplexQRP::P (void) const |
|
69 { |
|
70 return p; |
|
71 } |
|
72 |
|
73 #endif |
|
74 |
|
75 /* |
|
76 ;;; Local Variables: *** |
|
77 ;;; mode: C++ *** |
|
78 ;;; page-delimiter: "^/\\*" *** |
|
79 ;;; End: *** |
|
80 */ |