457
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
457
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexCHOL_h) |
|
25 #define octave_ComplexCHOL_h 1 |
|
26 |
3503
|
27 #include <iostream> |
457
|
28 |
|
29 #include "CMatrix.h" |
|
30 |
1881
|
31 class |
|
32 ComplexCHOL |
457
|
33 { |
|
34 public: |
|
35 |
1881
|
36 ComplexCHOL (void) : chol_mat () { } |
1528
|
37 |
4055
|
38 ComplexCHOL (const ComplexMatrix& a) { init (a); } |
1528
|
39 |
5275
|
40 ComplexCHOL (const ComplexMatrix& a, octave_idx_type& info) |
1528
|
41 { |
|
42 info = init (a); |
|
43 } |
|
44 |
4055
|
45 ComplexCHOL (const ComplexCHOL& a) |
1881
|
46 : chol_mat (a.chol_mat) { } |
1528
|
47 |
4055
|
48 ComplexCHOL& operator = (const ComplexCHOL& a) |
1528
|
49 { |
1881
|
50 if (this != &a) |
|
51 chol_mat = a.chol_mat; |
1528
|
52 |
|
53 return *this; |
|
54 } |
|
55 |
5340
|
56 ComplexMatrix chol_matrix (void) const { return chol_mat; } |
|
57 |
|
58 ComplexMatrix inverse (void) const; |
457
|
59 |
3504
|
60 friend std::ostream& operator << (std::ostream& os, const ComplexCHOL& a); |
457
|
61 |
|
62 private: |
|
63 |
1881
|
64 ComplexMatrix chol_mat; |
457
|
65 |
5275
|
66 octave_idx_type init (const ComplexMatrix& a); |
457
|
67 }; |
|
68 |
5340
|
69 ComplexMatrix chol2inv (const ComplexMatrix& r); |
|
70 |
457
|
71 #endif |
|
72 |
|
73 /* |
|
74 ;;; Local Variables: *** |
|
75 ;;; mode: C++ *** |
|
76 ;;; End: *** |
|
77 */ |