Mercurial > hg > octave-nkf
annotate liboctave/base-lu.h @ 7904:1fddd9b8e862
Fix nil_rep reference counting in gl-render.cc::vertex_data internal class
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Jul 2008 10:59:29 -0400 |
parents | f3c00dc0912b |
children | 445d27d79f4e |
rev | line source |
---|---|
1991 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1996, 1997, 2000, 2002, 2004, 2005, 2007 John W. Eaton |
1991 | 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 | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
1991 | 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 | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
1991 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_base_lu_h) | |
24 #define octave_base_lu_h 1 | |
25 | |
26 #include "MArray.h" | |
7515
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
27 #include "dColVector.h" |
1991 | 28 |
2049 | 29 template <class lu_type, class lu_elt_type, class p_type, class p_elt_type> |
3585 | 30 class |
31 base_lu | |
1991 | 32 { |
33 public: | |
34 | |
35 base_lu (void) { } | |
36 | |
37 base_lu (const base_lu& a) : a_fact (a.a_fact), ipvt (a.ipvt) { } | |
38 | |
39 base_lu& operator = (const base_lu& a) | |
40 { | |
41 if (this != &a) | |
42 { | |
43 a_fact = a.a_fact; | |
44 ipvt = a.ipvt; | |
45 } | |
46 return *this; | |
47 } | |
48 | |
49 ~base_lu (void) { } | |
50 | |
51 lu_type L (void) const; | |
52 | |
53 lu_type U (void) const; | |
54 | |
7515
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
55 lu_type Y (void) const { return a_fact; } |
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
56 |
1991 | 57 p_type P (void) const; |
58 | |
7515
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
59 ColumnVector P_vec (void) const; |
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
60 |
1991 | 61 protected: |
62 | |
63 lu_type a_fact; | |
5275 | 64 MArray<octave_idx_type> ipvt; |
1991 | 65 }; |
66 | |
67 #endif | |
68 | |
69 /* | |
70 ;;; Local Variables: *** | |
71 ;;; mode: C++ *** | |
72 ;;; End: *** | |
73 */ |