Mercurial > hg > octave-nkf
annotate liboctave/SparsedbleLU.h @ 14626:f947d2922feb stable rc-3-6-2-0
3.6.2-rc0 release candidate
* configure.ac (AC_INIT): Version is now 3.6.2-rc0.
(OCTAVE_RELEASE_DATE): Now 2012-05-11.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 May 2012 13:46:18 -0400 |
parents | 72c96de7a403 |
children | 460a3c6d8bf1 |
rev | line source |
---|---|
5164 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
3 Copyright (C) 2004-2012 David Bateman |
11523 | 4 Copyright (C) 1998-2004 Andy Adler |
7016 | 5 |
6 This file is part of Octave. | |
5164 | 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. | |
5164 | 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/>. | |
5164 | 21 |
22 */ | |
23 | |
24 #if !defined (octave_sparse_LU_h) | |
25 #define octave_sparse_LU_h 1 | |
26 | |
27 #include "sparse-base-lu.h" | |
28 #include "dSparse.h" | |
29 | |
30 class | |
6108 | 31 OCTAVE_API |
5164 | 32 SparseLU : public sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
33 { | |
34 public: | |
35 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
36 SparseLU (void) |
5164 | 37 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> () { } |
38 | |
7515
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
39 SparseLU (const SparseMatrix& a, const Matrix& piv_thres = Matrix(), |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
40 bool scale = false); |
5164 | 41 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
42 SparseLU (const SparseMatrix& a, const ColumnVector& Qinit, |
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
43 const Matrix& piv_thres = Matrix(), bool scale = false, |
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
44 bool FixedQ = false, double droptol = -1., |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
45 bool milu = false, bool udiag = false); |
5164 | 46 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
47 SparseLU (const SparseLU& a) |
5164 | 48 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> (a) { } |
49 | |
50 SparseLU& operator = (const SparseLU& a) | |
51 { | |
52 if (this != &a) | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
53 sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
54 :: operator = (a); |
5164 | 55 |
56 return *this; | |
57 } | |
58 | |
59 ~SparseLU (void) { } | |
60 }; | |
61 | |
62 #endif |