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 |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexAEPBALANCE_h) |
|
25 #define octave_ComplexAEPBALANCE_h 1 |
|
26 |
3503
|
27 #include <iostream> |
1730
|
28 #include <string> |
|
29 |
457
|
30 #include "CMatrix.h" |
|
31 |
1881
|
32 class |
|
33 ComplexAEPBALANCE |
457
|
34 { |
|
35 public: |
|
36 |
1881
|
37 ComplexAEPBALANCE (void) : balanced_mat (), balancing_mat () { } |
1528
|
38 |
3504
|
39 ComplexAEPBALANCE (const ComplexMatrix& a, const std::string& balance_job) |
1528
|
40 { |
|
41 init (a, balance_job); |
|
42 } |
|
43 |
|
44 ComplexAEPBALANCE (const ComplexAEPBALANCE& a) |
1881
|
45 : balanced_mat (a.balanced_mat), balancing_mat (a.balancing_mat) { } |
1528
|
46 |
|
47 ComplexAEPBALANCE& operator = (const ComplexAEPBALANCE& a) |
|
48 { |
1881
|
49 if (this != &a) |
|
50 { |
|
51 balanced_mat = a.balanced_mat; |
|
52 balancing_mat = a.balancing_mat; |
|
53 } |
1528
|
54 return *this; |
|
55 } |
|
56 |
1933
|
57 ~ComplexAEPBALANCE (void) { } |
|
58 |
1528
|
59 ComplexMatrix balanced_matrix (void) const { return balanced_mat; } |
|
60 |
|
61 ComplexMatrix balancing_matrix (void) const { return balancing_mat; } |
457
|
62 |
3504
|
63 friend std::ostream& operator << (std::ostream& os, const ComplexAEPBALANCE& a); |
457
|
64 |
|
65 private: |
|
66 |
|
67 ComplexMatrix balanced_mat; |
|
68 ComplexMatrix balancing_mat; |
1881
|
69 |
5275
|
70 octave_idx_type init (const ComplexMatrix& a, const std::string& balance_job); |
457
|
71 }; |
|
72 |
|
73 #endif |
|
74 |
|
75 /* |
|
76 ;;; Local Variables: *** |
|
77 ;;; mode: C++ *** |
|
78 ;;; End: *** |
|
79 */ |