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_ComplexAEPBALANCE_h) 00024 #define octave_ComplexAEPBALANCE_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 ComplexAEPBALANCE 00037 { 00038 public: 00039 00040 ComplexAEPBALANCE (void) : balanced_mat (), balancing_mat () { } 00041 00042 ComplexAEPBALANCE (const ComplexMatrix& a, const std::string& balance_job) 00043 { 00044 init (a, balance_job); 00045 } 00046 00047 ComplexAEPBALANCE (const ComplexAEPBALANCE& a) 00048 : balanced_mat (a.balanced_mat), balancing_mat (a.balancing_mat) { } 00049 00050 ComplexAEPBALANCE& operator = (const ComplexAEPBALANCE& a) 00051 { 00052 if (this != &a) 00053 { 00054 balanced_mat = a.balanced_mat; 00055 balancing_mat = a.balancing_mat; 00056 } 00057 return *this; 00058 } 00059 00060 ~ComplexAEPBALANCE (void) { } 00061 00062 ComplexMatrix balanced_matrix (void) const { return balanced_mat; } 00063 00064 ComplexMatrix balancing_matrix (void) const { return balancing_mat; } 00065 00066 friend std::ostream& operator << (std::ostream& os, const ComplexAEPBALANCE& a); 00067 00068 private: 00069 00070 ComplexMatrix balanced_mat; 00071 ComplexMatrix balancing_mat; 00072 00073 int init (const ComplexMatrix& a, const std::string& balance_job); 00074 }; 00075 00076 #endif 00077 00078 /* 00079 ;;; Local Variables: *** 00080 ;;; mode: C++ *** 00081 ;;; End: *** 00082 */
SEO | [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送 | ||