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