5164
|
1 /* |
|
2 |
|
3 Copyright (C) 2004 David Bateman |
7016
|
4 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Andy Adler |
|
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 |
|
36 SparseLU (void) |
|
37 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> () { } |
|
38 |
|
39 SparseLU (const SparseMatrix& a, double piv_thres = -1.0); |
|
40 |
|
41 SparseLU (const SparseMatrix& a, const ColumnVector& Qinit, |
5282
|
42 double piv_thres = -1.0, bool FixedQ = false, |
|
43 double droptol = -1., bool milu = false, bool udiag = false); |
5164
|
44 |
|
45 SparseLU (const SparseLU& a) |
|
46 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> (a) { } |
|
47 |
|
48 SparseLU& operator = (const SparseLU& a) |
|
49 { |
|
50 if (this != &a) |
|
51 sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
52 :: operator = (a); |
|
53 |
|
54 return *this; |
|
55 } |
|
56 |
|
57 ~SparseLU (void) { } |
|
58 }; |
|
59 |
|
60 #endif |
|
61 |
|
62 /* |
|
63 ;;; Local Variables: *** |
|
64 ;;; mode: C++ *** |
|
65 ;;; End: *** |
|
66 */ |