457
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002, 2004, 2005, 2006, |
|
4 2007 John W. Eaton |
457
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
457
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
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 |
6108
|
33 OCTAVE_API |
1881
|
34 ComplexAEPBALANCE |
457
|
35 { |
|
36 public: |
|
37 |
1881
|
38 ComplexAEPBALANCE (void) : balanced_mat (), balancing_mat () { } |
1528
|
39 |
3504
|
40 ComplexAEPBALANCE (const ComplexMatrix& a, const std::string& balance_job) |
1528
|
41 { |
|
42 init (a, balance_job); |
|
43 } |
|
44 |
|
45 ComplexAEPBALANCE (const ComplexAEPBALANCE& a) |
1881
|
46 : balanced_mat (a.balanced_mat), balancing_mat (a.balancing_mat) { } |
1528
|
47 |
|
48 ComplexAEPBALANCE& operator = (const ComplexAEPBALANCE& a) |
|
49 { |
1881
|
50 if (this != &a) |
|
51 { |
|
52 balanced_mat = a.balanced_mat; |
|
53 balancing_mat = a.balancing_mat; |
|
54 } |
1528
|
55 return *this; |
|
56 } |
|
57 |
1933
|
58 ~ComplexAEPBALANCE (void) { } |
|
59 |
1528
|
60 ComplexMatrix balanced_matrix (void) const { return balanced_mat; } |
|
61 |
|
62 ComplexMatrix balancing_matrix (void) const { return balancing_mat; } |
457
|
63 |
3504
|
64 friend std::ostream& operator << (std::ostream& os, const ComplexAEPBALANCE& a); |
457
|
65 |
|
66 private: |
|
67 |
|
68 ComplexMatrix balanced_mat; |
|
69 ComplexMatrix balancing_mat; |
1881
|
70 |
5275
|
71 octave_idx_type init (const ComplexMatrix& a, const std::string& balance_job); |
457
|
72 }; |
|
73 |
|
74 #endif |
|
75 |
|
76 /* |
|
77 ;;; Local Variables: *** |
|
78 ;;; mode: C++ *** |
|
79 ;;; End: *** |
|
80 */ |