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_CHOL_h)
00024 #define octave_CHOL_h 1
00025
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029
00030 #include <iostream>
00031
00032 #include "dMatrix.h"
00033
00034 class
00035 CHOL
00036 {
00037 public:
00038
00039 CHOL (void) : chol_mat () { }
00040
00041 CHOL (const Matrix& a) { init (a); }
00042
00043 CHOL (const Matrix& a, int& info) { info = init (a); }
00044
00045 CHOL (const CHOL& a) : chol_mat (a.chol_mat) { }
00046
00047 CHOL& operator = (const CHOL& a)
00048 {
00049 if (this != &a)
00050 chol_mat = a.chol_mat;
00051
00052 return *this;
00053 }
00054
00055 Matrix chol_matrix (void) const { return chol_mat; }
00056
00057 friend std::ostream& operator << (std::ostream& os, const CHOL& a);
00058
00059 private:
00060
00061 Matrix chol_mat;
00062
00063 int init (const Matrix& a);
00064 };
00065
00066 #endif
00067
00068
00069
00070
00071
00072