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_ComplexCHOL_h) |
|
25 #define octave_ComplexCHOL_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 ComplexCHOL |
|
36 { |
|
37 friend class ComplexMatrix; |
|
38 |
|
39 public: |
|
40 |
|
41 ComplexCHOL (void) {} |
|
42 ComplexCHOL (const ComplexMatrix& a); |
|
43 ComplexCHOL (const ComplexMatrix& a, int& info); |
|
44 ComplexCHOL (const ComplexCHOL& a); |
|
45 ComplexCHOL& operator = (const ComplexCHOL& a); |
|
46 ComplexMatrix chol_matrix (void) const; |
|
47 |
|
48 friend ostream& operator << (ostream& os, const ComplexCHOL& a); |
|
49 |
|
50 private: |
|
51 |
|
52 int init (const ComplexMatrix& a); |
|
53 |
|
54 ComplexMatrix chol_mat; |
|
55 }; |
|
56 |
|
57 inline ComplexCHOL::ComplexCHOL (const ComplexMatrix& a) |
|
58 { |
|
59 init (a); |
|
60 } |
|
61 |
|
62 inline ComplexCHOL::ComplexCHOL (const ComplexMatrix& a, int& info) |
|
63 { |
|
64 info = init (a); |
|
65 } |
|
66 |
|
67 inline ComplexCHOL::ComplexCHOL (const ComplexCHOL& a) |
|
68 { |
|
69 chol_mat = a.chol_mat; |
|
70 } |
|
71 |
|
72 inline ComplexCHOL& |
|
73 ComplexCHOL::operator = (const ComplexCHOL& a) |
|
74 { |
|
75 chol_mat = a.chol_mat; |
|
76 |
|
77 return *this; |
|
78 } |
|
79 |
|
80 inline ComplexMatrix ComplexCHOL::chol_matrix (void) const |
|
81 { |
|
82 return chol_mat; |
|
83 } |
|
84 |
|
85 #endif |
|
86 |
|
87 /* |
|
88 ;;; Local Variables: *** |
|
89 ;;; mode: C++ *** |
|
90 ;;; page-delimiter: "^/\\*" *** |
|
91 ;;; End: *** |
|
92 */ |