457
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
1011
|
4 Copyright (C) 1992, 1993, 1994, 1995 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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
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 |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexAEPBALANCE_h) |
|
25 #define octave_ComplexAEPBALANCE_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
457
|
31 class ostream; |
|
32 |
|
33 #include "CMatrix.h" |
|
34 |
|
35 class ComplexAEPBALANCE |
|
36 { |
|
37 friend class ComplexMatrix; |
|
38 |
|
39 public: |
|
40 |
1528
|
41 ComplexAEPBALANCE (void) { } |
|
42 |
|
43 ComplexAEPBALANCE (const ComplexMatrix& a, const char * balance_job) |
|
44 { |
|
45 init (a, balance_job); |
|
46 } |
|
47 |
|
48 ComplexAEPBALANCE (const ComplexAEPBALANCE& a) |
|
49 { |
|
50 balanced_mat = a.balanced_mat; |
|
51 balancing_mat = a.balancing_mat; |
|
52 } |
|
53 |
|
54 ComplexAEPBALANCE& operator = (const ComplexAEPBALANCE& a) |
|
55 { |
|
56 balanced_mat = a.balanced_mat; |
|
57 balancing_mat = a.balancing_mat; |
|
58 |
|
59 return *this; |
|
60 } |
|
61 |
|
62 ComplexMatrix balanced_matrix (void) const { return balanced_mat; } |
|
63 |
|
64 ComplexMatrix balancing_matrix (void) const { return balancing_mat; } |
457
|
65 |
|
66 friend ostream& operator << (ostream& os, const ComplexAEPBALANCE& a); |
|
67 |
|
68 private: |
|
69 |
|
70 int init (const ComplexMatrix& a, const char * balance_job); |
|
71 |
|
72 ComplexMatrix balanced_mat; |
|
73 ComplexMatrix balancing_mat; |
|
74 }; |
|
75 |
|
76 #endif |
|
77 |
|
78 /* |
|
79 ;;; Local Variables: *** |
|
80 ;;; mode: C++ *** |
|
81 ;;; page-delimiter: "^/\\*" *** |
|
82 ;;; End: *** |
|
83 */ |