Mercurial > hg > octave-lyh
annotate liboctave/CmplxLU.h @ 10396:a0b51ac0f88a
optimize accumdim with summation
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 05 Mar 2010 12:31:30 +0100 |
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_ComplexLU_h) | |
8018
8487847eb092
fCmplxLU.h, CmplxLU.h: fix typo in definition of multiple-inclusion guard macro
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
25 #define octave_ComplexLU_h 1 |
457 | 26 |
1992 | 27 #include "base-lu.h" |
457 | 28 #include "dMatrix.h" |
29 #include "CMatrix.h" | |
30 | |
1881 | 31 class |
6108 | 32 OCTAVE_API |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8018
diff
changeset
|
33 ComplexLU : public base_lu <ComplexMatrix> |
457 | 34 { |
35 public: | |
36 | |
2049 | 37 ComplexLU (void) |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8018
diff
changeset
|
38 : base_lu <ComplexMatrix> () { } |
457 | 39 |
40 ComplexLU (const ComplexMatrix& a); | |
41 | |
2049 | 42 ComplexLU (const ComplexLU& a) |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8018
diff
changeset
|
43 : base_lu <ComplexMatrix> (a) { } |
457 | 44 |
9708 | 45 ComplexLU (const ComplexMatrix& l, const ComplexMatrix& u, |
46 const PermMatrix& p) | |
47 : base_lu <ComplexMatrix> (l, u, p) { } | |
48 | |
1528 | 49 ComplexLU& operator = (const ComplexLU& a) |
50 { | |
1881 | 51 if (this != &a) |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
52 base_lu <ComplexMatrix> :: operator = (a); |
1992 | 53 |
1528 | 54 return *this; |
55 } | |
56 | |
1926 | 57 ~ComplexLU (void) { } |
9708 | 58 |
59 void update (const ComplexColumnVector& u, const ComplexColumnVector& v); | |
60 | |
61 void update (const ComplexMatrix& u, const ComplexMatrix& v); | |
62 | |
63 void update_piv (const ComplexColumnVector& u, const ComplexColumnVector& v); | |
64 | |
65 void update_piv (const ComplexMatrix& u, const ComplexMatrix& v); | |
457 | 66 }; |
67 | |
68 #endif |