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_CHOL_h) |
|
25 #define octave_CHOL_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
457
|
31 class ostream; |
|
32 |
|
33 #include "dMatrix.h" |
|
34 |
1881
|
35 class |
|
36 CHOL |
457
|
37 { |
|
38 public: |
|
39 |
1881
|
40 CHOL (void) : chol_mat () { } |
1528
|
41 |
|
42 CHOL (const Matrix& a) { init (a); } |
457
|
43 |
1528
|
44 CHOL (const Matrix& a, int& info) { info = init (a); } |
|
45 |
1881
|
46 CHOL (const CHOL& a) : chol_mat (a.chol_mat) { } |
457
|
47 |
1528
|
48 CHOL& operator = (const CHOL& a) |
|
49 { |
1881
|
50 if (this != &a) |
|
51 chol_mat = a.chol_mat; |
457
|
52 |
1528
|
53 return *this; |
|
54 } |
|
55 |
|
56 Matrix chol_matrix (void) const { return chol_mat; } |
|
57 |
457
|
58 friend ostream& operator << (ostream& os, const CHOL& a); |
|
59 |
|
60 private: |
|
61 |
1881
|
62 Matrix chol_mat; |
457
|
63 |
1881
|
64 int init (const Matrix& a); |
457
|
65 }; |
|
66 |
|
67 #endif |
|
68 |
|
69 /* |
|
70 ;;; Local Variables: *** |
|
71 ;;; mode: C++ *** |
|
72 ;;; page-delimiter: "^/\\*" *** |
|
73 ;;; End: *** |
|
74 */ |