457
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
1881
|
4 Copyright (C) 1996 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 |
1881
|
35 class |
|
36 ComplexCHOL |
457
|
37 { |
|
38 public: |
|
39 |
1881
|
40 ComplexCHOL (void) : chol_mat () { } |
1528
|
41 |
|
42 ComplexCHOL::ComplexCHOL (const ComplexMatrix& a) { init (a); } |
|
43 |
|
44 ComplexCHOL::ComplexCHOL (const ComplexMatrix& a, int& info) |
|
45 { |
|
46 info = init (a); |
|
47 } |
|
48 |
|
49 ComplexCHOL::ComplexCHOL (const ComplexCHOL& a) |
1881
|
50 : chol_mat (a.chol_mat) { } |
1528
|
51 |
|
52 ComplexCHOL& ComplexCHOL::operator = (const ComplexCHOL& a) |
|
53 { |
1881
|
54 if (this != &a) |
|
55 chol_mat = a.chol_mat; |
1528
|
56 |
|
57 return *this; |
|
58 } |
|
59 |
|
60 ComplexMatrix ComplexCHOL::chol_matrix (void) const |
|
61 { |
|
62 return chol_mat; |
|
63 } |
457
|
64 |
|
65 friend ostream& operator << (ostream& os, const ComplexCHOL& a); |
|
66 |
|
67 private: |
|
68 |
1881
|
69 ComplexMatrix chol_mat; |
457
|
70 |
1881
|
71 int init (const ComplexMatrix& a); |
457
|
72 }; |
|
73 |
|
74 #endif |
|
75 |
|
76 /* |
|
77 ;;; Local Variables: *** |
|
78 ;;; mode: C++ *** |
|
79 ;;; page-delimiter: "^/\\*" *** |
|
80 ;;; End: *** |
|
81 */ |