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_ComplexSCHUR_h)
00024 #define octave_ComplexSCHUR_h 1
00025
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029
00030 #include <iostream>
00031 #include <string>
00032
00033 #include "CMatrix.h"
00034
00035 class
00036 ComplexSCHUR
00037 {
00038 public:
00039
00040 ComplexSCHUR (void)
00041 : schur_mat (), unitary_mat () { }
00042
00043 ComplexSCHUR (const ComplexMatrix& a, const std::string& ord,
00044 bool calc_unitary = true)
00045 : schur_mat (), unitary_mat () { init (a, ord, calc_unitary); }
00046
00047 ComplexSCHUR (const ComplexMatrix& a, const std::string& ord, int& info,
00048 bool calc_unitary = true)
00049 : schur_mat (), unitary_mat () { info = init (a, ord, calc_unitary); }
00050
00051 ComplexSCHUR (const ComplexSCHUR& a)
00052 : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) { }
00053
00054 ComplexSCHUR& operator = (const ComplexSCHUR& a)
00055 {
00056 if (this != &a)
00057 {
00058 schur_mat = a.schur_mat;
00059 unitary_mat = a.unitary_mat;
00060 }
00061 return *this;
00062 }
00063
00064 ~ComplexSCHUR (void) { }
00065
00066 ComplexMatrix schur_matrix (void) const { return schur_mat; }
00067
00068 ComplexMatrix unitary_matrix (void) const { return unitary_mat; }
00069
00070 friend std::ostream& operator << (std::ostream& os, const ComplexSCHUR& a);
00071
00072 typedef int (*select_function) (const Complex&);
00073
00074 private:
00075
00076 ComplexMatrix schur_mat;
00077 ComplexMatrix unitary_mat;
00078
00079 select_function selector;
00080
00081 int init (const ComplexMatrix& a, const std::string& ord, bool calc_unitary);
00082 };
00083
00084 #endif
00085
00086
00087
00088
00089
00090