Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined (octave_ComplexCHOL_h)
00025 #define octave_ComplexCHOL_h 1
00026
00027 #include <iosfwd>
00028
00029 #include "CMatrix.h"
00030 #include "CColVector.h"
00031
00032 class
00033 OCTAVE_API
00034 ComplexCHOL
00035 {
00036 public:
00037
00038 ComplexCHOL (void) : chol_mat (), xrcond (0) { }
00039
00040 ComplexCHOL (const ComplexMatrix& a, bool calc_cond = false)
00041 : chol_mat (), xrcond (0)
00042 {
00043 init (a, calc_cond);
00044 }
00045
00046 ComplexCHOL (const ComplexMatrix& a, octave_idx_type& info,
00047 bool calc_cond = false)
00048 : chol_mat (), xrcond (0)
00049 {
00050 info = init (a, calc_cond);
00051 }
00052
00053 ComplexCHOL (const ComplexCHOL& a)
00054 : chol_mat (a.chol_mat), xrcond (a.xrcond) { }
00055
00056 ComplexCHOL& operator = (const ComplexCHOL& a)
00057 {
00058 if (this != &a)
00059 {
00060 chol_mat = a.chol_mat;
00061 xrcond = a.xrcond;
00062 }
00063
00064 return *this;
00065 }
00066
00067 ComplexMatrix chol_matrix (void) const { return chol_mat; }
00068
00069 double rcond (void) const { return xrcond; }
00070
00071 ComplexMatrix inverse (void) const;
00072
00073 void set (const ComplexMatrix& R);
00074
00075 void update (const ComplexColumnVector& u);
00076
00077 octave_idx_type downdate (const ComplexColumnVector& u);
00078
00079 octave_idx_type insert_sym (const ComplexColumnVector& u, octave_idx_type j);
00080
00081 void delete_sym (octave_idx_type j);
00082
00083 void shift_sym (octave_idx_type i, octave_idx_type j);
00084
00085 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const ComplexCHOL& a);
00086
00087 private:
00088
00089 ComplexMatrix chol_mat;
00090
00091 double xrcond;
00092
00093 octave_idx_type init (const ComplexMatrix& a, bool calc_cond);
00094 };
00095
00096 ComplexMatrix OCTAVE_API chol2inv (const ComplexMatrix& r);
00097
00098 #endif