00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_QRP_h)
00024 #define octave_QRP_h 1
00025
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029
00030 #include <iostream>
00031
00032 #include "dbleQR.h"
00033
00034 class
00035 QRP : public QR
00036 {
00037 public:
00038
00039 QRP (void) : QR (), p () { }
00040
00041 QRP (const Matrix&, QR::type = QR::std);
00042
00043 QRP (const QRP& a) : QR (a), p (a.p) { }
00044
00045 QRP& operator = (const QRP& a)
00046 {
00047 if (this != &a)
00048 {
00049 QR::operator = (a);
00050 p = a.p;
00051 }
00052
00053 return *this;
00054 }
00055
00056 ~QRP (void) { }
00057
00058 void init (const Matrix&, QR::type = QR::std);
00059
00060 Matrix P (void) const { return p; }
00061
00062 friend std::ostream& operator << (std::ostream&, const QRP&);
00063
00064 protected:
00065
00066 Matrix p;
00067 };
00068
00069 #endif
00070
00071
00072
00073
00074
00075