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 |
|
30 SparseLU : public sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
31 { |
|
32 public: |
|
33 |
|
34 SparseLU (void) |
|
35 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> () { } |
|
36 |
|
37 SparseLU (const SparseMatrix& a, double piv_thres = -1.0); |
|
38 |
|
39 SparseLU (const SparseMatrix& a, const ColumnVector& Qinit, |
5282
|
40 double piv_thres = -1.0, bool FixedQ = false, |
|
41 double droptol = -1., bool milu = false, bool udiag = false); |
5164
|
42 |
|
43 SparseLU (const SparseLU& a) |
|
44 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> (a) { } |
|
45 |
|
46 SparseLU& operator = (const SparseLU& a) |
|
47 { |
|
48 if (this != &a) |
|
49 sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
50 :: operator = (a); |
|
51 |
|
52 return *this; |
|
53 } |
|
54 |
|
55 ~SparseLU (void) { } |
|
56 }; |
|
57 |
|
58 #endif |
|
59 |
|
60 /* |
|
61 ;;; Local Variables: *** |
|
62 ;;; mode: C++ *** |
|
63 ;;; End: *** |
|
64 */ |