457
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
457
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
457
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_ComplexAEPBALANCE_h) |
|
24 #define octave_ComplexAEPBALANCE_h 1 |
|
25 |
1296
|
26 #if defined (__GNUG__) |
|
27 #pragma interface |
|
28 #endif |
|
29 |
3503
|
30 #include <iostream> |
1730
|
31 #include <string> |
|
32 |
457
|
33 #include "CMatrix.h" |
|
34 |
1881
|
35 class |
|
36 ComplexAEPBALANCE |
457
|
37 { |
|
38 public: |
|
39 |
1881
|
40 ComplexAEPBALANCE (void) : balanced_mat (), balancing_mat () { } |
1528
|
41 |
3504
|
42 ComplexAEPBALANCE (const ComplexMatrix& a, const std::string& balance_job) |
1528
|
43 { |
|
44 init (a, balance_job); |
|
45 } |
|
46 |
|
47 ComplexAEPBALANCE (const ComplexAEPBALANCE& a) |
1881
|
48 : balanced_mat (a.balanced_mat), balancing_mat (a.balancing_mat) { } |
1528
|
49 |
|
50 ComplexAEPBALANCE& operator = (const ComplexAEPBALANCE& a) |
|
51 { |
1881
|
52 if (this != &a) |
|
53 { |
|
54 balanced_mat = a.balanced_mat; |
|
55 balancing_mat = a.balancing_mat; |
|
56 } |
1528
|
57 return *this; |
|
58 } |
|
59 |
1933
|
60 ~ComplexAEPBALANCE (void) { } |
|
61 |
1528
|
62 ComplexMatrix balanced_matrix (void) const { return balanced_mat; } |
|
63 |
|
64 ComplexMatrix balancing_matrix (void) const { return balancing_mat; } |
457
|
65 |
3504
|
66 friend std::ostream& operator << (std::ostream& os, const ComplexAEPBALANCE& a); |
457
|
67 |
|
68 private: |
|
69 |
|
70 ComplexMatrix balanced_mat; |
|
71 ComplexMatrix balancing_mat; |
1881
|
72 |
3504
|
73 int init (const ComplexMatrix& a, const std::string& balance_job); |
457
|
74 }; |
|
75 |
|
76 #endif |
|
77 |
|
78 /* |
|
79 ;;; Local Variables: *** |
|
80 ;;; mode: C++ *** |
|
81 ;;; End: *** |
|
82 */ |