メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

CmplxSCHUR.h

解説を見る。
00001 /*
00002 
00003 Copyright (C) 1996, 1997 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 2, or (at your option) any
00010 later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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 ;;; Local Variables: ***
00088 ;;; mode: C++ ***
00089 ;;; End: ***
00090 */

Wed Dec 29 11:51:03 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送