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 |
|
17 along with this program; see the file COPYING. If not, write to the Free |
|
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
19 |
|
20 */ |
|
21 |
|
22 #if !defined (octave_sparse_LU_h) |
|
23 #define octave_sparse_LU_h 1 |
|
24 |
|
25 #include "sparse-base-lu.h" |
|
26 #include "dSparse.h" |
|
27 |
|
28 class |
|
29 SparseLU : public sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
30 { |
|
31 public: |
|
32 |
|
33 SparseLU (void) |
|
34 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> () { } |
|
35 |
|
36 SparseLU (const SparseMatrix& a, double piv_thres = -1.0); |
|
37 |
|
38 SparseLU (const SparseMatrix& a, const ColumnVector& Qinit, |
5282
|
39 double piv_thres = -1.0, bool FixedQ = false, |
|
40 double droptol = -1., bool milu = false, bool udiag = false); |
5164
|
41 |
|
42 SparseLU (const SparseLU& a) |
|
43 : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> (a) { } |
|
44 |
|
45 SparseLU& operator = (const SparseLU& a) |
|
46 { |
|
47 if (this != &a) |
|
48 sparse_base_lu <SparseMatrix, double, SparseMatrix, double> |
|
49 :: operator = (a); |
|
50 |
|
51 return *this; |
|
52 } |
|
53 |
|
54 ~SparseLU (void) { } |
|
55 }; |
|
56 |
|
57 #endif |
|
58 |
|
59 /* |
|
60 ;;; Local Variables: *** |
|
61 ;;; mode: C++ *** |
|
62 ;;; End: *** |
|
63 */ |