Mercurial > hg > octave-lyh
annotate liboctave/dbleLU.h @ 11220:883b9308353c
allow class function to be called from methods as well as constructors
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 10 Nov 2010 00:54:34 -0500 |
parents | cbc402e64d83 |
children | fd0a3ac60b0e |
rev | line source |
---|---|
457 | 1 /* |
2 | |
8920 | 3 Copyright (C) 1994, 1995, 1996, 1997, 2002, 2004, 2005, 2006, 2007, 2008 |
7017 | 4 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 | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
457 | 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 | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
457 | 21 |
22 */ | |
23 | |
24 #if !defined (octave_LU_h) | |
25 #define octave_LU_h 1 | |
26 | |
1992 | 27 #include "base-lu.h" |
457 | 28 #include "dMatrix.h" |
29 | |
1992 | 30 class |
6108 | 31 OCTAVE_API |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
32 LU : public base_lu <Matrix> |
457 | 33 { |
34 public: | |
35 | |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
36 LU (void) : base_lu <Matrix> () { } |
457 | 37 |
38 LU (const Matrix& a); | |
39 | |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
40 LU (const LU& a) : base_lu <Matrix> (a) { } |
457 | 41 |
9708 | 42 LU (const Matrix& l, const Matrix& u, const PermMatrix& p) |
43 : base_lu <Matrix> (l, u, p) { } | |
44 | |
1528 | 45 LU& operator = (const LU& a) |
46 { | |
1881 | 47 if (this != &a) |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
48 base_lu <Matrix> :: operator = (a); |
1992 | 49 |
1528 | 50 return *this; |
51 } | |
52 | |
1926 | 53 ~LU (void) { } |
9708 | 54 |
55 void update (const ColumnVector& u, const ColumnVector& v); | |
56 | |
57 void update (const Matrix& u, const Matrix& v); | |
58 | |
59 void update_piv (const ColumnVector& u, const ColumnVector& v); | |
60 | |
61 void update_piv (const Matrix& u, const Matrix& v); | |
457 | 62 }; |
63 | |
64 #endif |