457
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
|
4 Copyright (C) 1992, 1993, 1994 John W. Eaton |
|
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_ComplexCHOL_h) |
|
25 #define octave_ComplexCHOL_h 1 |
|
26 |
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
|
31 class ostream; |
|
32 |
|
33 #include "CMatrix.h" |
|
34 |
|
35 extern "C++" { |
|
36 |
|
37 class ComplexCHOL |
|
38 { |
|
39 friend class ComplexMatrix; |
|
40 |
|
41 public: |
|
42 |
|
43 ComplexCHOL (void) {} |
|
44 ComplexCHOL (const ComplexMatrix& a); |
|
45 ComplexCHOL (const ComplexMatrix& a, int& info); |
|
46 ComplexCHOL (const ComplexCHOL& a); |
|
47 ComplexCHOL& operator = (const ComplexCHOL& a); |
|
48 ComplexMatrix chol_matrix (void) const; |
|
49 |
|
50 friend ostream& operator << (ostream& os, const ComplexCHOL& a); |
|
51 |
|
52 private: |
|
53 |
|
54 int init (const ComplexMatrix& a); |
|
55 |
|
56 ComplexMatrix chol_mat; |
|
57 }; |
|
58 |
|
59 inline ComplexCHOL::ComplexCHOL (const ComplexMatrix& a) |
|
60 { |
|
61 init (a); |
|
62 } |
|
63 |
|
64 inline ComplexCHOL::ComplexCHOL (const ComplexMatrix& a, int& info) |
|
65 { |
|
66 info = init (a); |
|
67 } |
|
68 |
|
69 inline ComplexCHOL::ComplexCHOL (const ComplexCHOL& a) |
|
70 { |
|
71 chol_mat = a.chol_mat; |
|
72 } |
|
73 |
|
74 inline ComplexCHOL& |
|
75 ComplexCHOL::operator = (const ComplexCHOL& a) |
|
76 { |
|
77 chol_mat = a.chol_mat; |
|
78 |
|
79 return *this; |
|
80 } |
|
81 |
|
82 inline ComplexMatrix ComplexCHOL::chol_matrix (void) const |
|
83 { |
|
84 return chol_mat; |
|
85 } |
|
86 |
|
87 } // extern "C++" |
|
88 |
|
89 #endif |
|
90 |
|
91 /* |
|
92 ;;; Local Variables: *** |
|
93 ;;; mode: C++ *** |
|
94 ;;; page-delimiter: "^/\\*" *** |
|
95 ;;; End: *** |
|
96 */ |