00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #if !defined (octave_ComplexQR_h)
00026 #define octave_ComplexQR_h 1
00027
00028 #include <iosfwd>
00029
00030 #include "CMatrix.h"
00031 #include "CColVector.h"
00032 #include "CRowVector.h"
00033 #include "base-qr.h"
00034
00035
00036 class
00037 OCTAVE_API
00038 ComplexQR : public base_qr<ComplexMatrix>
00039 {
00040 public:
00041
00042 ComplexQR (void) : base_qr<ComplexMatrix> () { }
00043
00044 ComplexQR (const ComplexMatrix&, qr_type_t = qr_type_std);
00045
00046 ComplexQR (const ComplexMatrix& qx, const ComplexMatrix& rx)
00047 : base_qr<ComplexMatrix> (qx, rx) { }
00048
00049 ComplexQR (const ComplexQR& a) : base_qr<ComplexMatrix> (a) { }
00050
00051 void init (const ComplexMatrix&, qr_type_t = qr_type_std);
00052
00053 void update (const ComplexColumnVector& u, const ComplexColumnVector& v);
00054
00055 void update (const ComplexMatrix& u, const ComplexMatrix& v);
00056
00057 void insert_col (const ComplexColumnVector& u, octave_idx_type j);
00058
00059 void insert_col (const ComplexMatrix& u, const Array<octave_idx_type>& j);
00060
00061 void delete_col (octave_idx_type j);
00062
00063 void delete_col (const Array<octave_idx_type>& j);
00064
00065 void insert_row (const ComplexRowVector& u, octave_idx_type j);
00066
00067 void delete_row (octave_idx_type j);
00068
00069 void shift_cols (octave_idx_type i, octave_idx_type j);
00070
00071 protected:
00072
00073 void form (octave_idx_type n, ComplexMatrix& afact,
00074 Complex *tau, qr_type_t qr_type);
00075 };
00076
00077 #endif
00078
00079
00080
00081
00082
00083