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 |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexAEPBALANCE_h) |
|
25 #define octave_ComplexAEPBALANCE_h 1 |
|
26 |
|
27 class ostream; |
|
28 |
|
29 #include "CMatrix.h" |
|
30 |
|
31 extern "C++" { |
|
32 |
|
33 class ComplexAEPBALANCE |
|
34 { |
|
35 friend class ComplexMatrix; |
|
36 |
|
37 public: |
|
38 |
|
39 ComplexAEPBALANCE (void) {} |
|
40 ComplexAEPBALANCE (const ComplexMatrix& a, const char *balance_job); |
|
41 ComplexAEPBALANCE (const ComplexAEPBALANCE& a); |
|
42 ComplexAEPBALANCE& operator = (const ComplexAEPBALANCE& a); |
|
43 ComplexMatrix balanced_matrix (void) const; |
|
44 ComplexMatrix balancing_matrix (void) const; |
|
45 |
|
46 friend ostream& operator << (ostream& os, const ComplexAEPBALANCE& a); |
|
47 |
|
48 private: |
|
49 |
|
50 int init (const ComplexMatrix& a, const char * balance_job); |
|
51 |
|
52 ComplexMatrix balanced_mat; |
|
53 ComplexMatrix balancing_mat; |
|
54 }; |
|
55 |
|
56 inline ComplexAEPBALANCE::ComplexAEPBALANCE (const ComplexMatrix& a, |
|
57 const char * balance_job) |
|
58 { |
|
59 init (a, balance_job); |
|
60 } |
|
61 |
|
62 inline ComplexAEPBALANCE::ComplexAEPBALANCE (const ComplexAEPBALANCE& a) |
|
63 { |
|
64 balanced_mat = a.balanced_mat; |
|
65 balancing_mat = a.balancing_mat; |
|
66 } |
|
67 |
|
68 inline ComplexAEPBALANCE& |
|
69 ComplexAEPBALANCE::operator = (const ComplexAEPBALANCE& a) |
|
70 { |
|
71 balanced_mat = a.balanced_mat; |
|
72 balancing_mat = a.balancing_mat; |
|
73 |
|
74 return *this; |
|
75 } |
|
76 |
|
77 inline ComplexMatrix ComplexAEPBALANCE::balanced_matrix (void) const |
|
78 { |
|
79 return balanced_mat; |
|
80 } |
|
81 |
|
82 inline ComplexMatrix ComplexAEPBALANCE::balancing_matrix (void) const |
|
83 { |
|
84 return balancing_mat; |
|
85 } |
|
86 |
|
87 } // extern "C++" |
|
88 |
|
89 #endif |
|
90 |
|
91 /* |
|
92 ;;; Local Variables: *** |
|
93 ;;; mode: C++ *** |
|
94 ;;; page-delimiter: "^/\\*" *** |
|
95 ;;; End: *** |
|
96 */ |