5164
|
1 /* |
|
2 |
|
3 Copyright (C) 2004 David Bateman |
|
4 Copyright (C) 1998-2004 Andy Adler |
|
5 |
|
6 Octave is free software; you can redistribute it and/or modify it |
|
7 under the terms of the GNU General Public License as published by the |
|
8 Free Software Foundation; either version 2, or (at your option) any |
|
9 later version. |
|
10 |
|
11 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 for more details. |
|
15 |
|
16 You should have received a copy of the GNU General Public License |
5307
|
17 along with this program; see the file COPYING. If not, write to the |
|
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
19 Boston, MA 02110-1301, USA. |
5164
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_sparse_LU_h) |
|
24 #define octave_sparse_LU_h 1 |
|
25 |
|
26 #include "sparse-base-lu.h" |
|
27 #include "dSparse.h" |
|
28 |
|
29 class |
6108
|
30 OCTAVE_API |
5164
|
31 SparseLU : public sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
32 { |
|
33 public: |
|
34 |
|
35 SparseLU (void) |
|
36 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> () { } |
|
37 |
|
38 SparseLU (const SparseMatrix& a, double piv_thres = -1.0); |
|
39 |
|
40 SparseLU (const SparseMatrix& a, const ColumnVector& Qinit, |
5282
|
41 double piv_thres = -1.0, bool FixedQ = false, |
|
42 double droptol = -1., bool milu = false, bool udiag = false); |
5164
|
43 |
|
44 SparseLU (const SparseLU& a) |
|
45 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> (a) { } |
|
46 |
|
47 SparseLU& operator = (const SparseLU& a) |
|
48 { |
|
49 if (this != &a) |
|
50 sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
51 :: operator = (a); |
|
52 |
|
53 return *this; |
|
54 } |
|
55 |
|
56 ~SparseLU (void) { } |
|
57 }; |
|
58 |
|
59 #endif |
|
60 |
|
61 /* |
|
62 ;;; Local Variables: *** |
|
63 ;;; mode: C++ *** |
|
64 ;;; End: *** |
|
65 */ |