5164
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 2004, 2005, 2006, 2007 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_complex_LU_h) |
|
25 #define octave_sparse_complex_LU_h 1 |
|
26 |
|
27 #include "sparse-base-lu.h" |
|
28 #include "dSparse.h" |
|
29 #include "CSparse.h" |
|
30 |
|
31 class |
6108
|
32 OCTAVE_API |
5164
|
33 SparseComplexLU |
|
34 : public sparse_base_lu <SparseComplexMatrix, Complex, SparseMatrix, double> |
|
35 { |
|
36 public: |
|
37 |
|
38 SparseComplexLU (void) |
|
39 : sparse_base_lu <SparseComplexMatrix, Complex, SparseMatrix, double> () { } |
|
40 |
|
41 SparseComplexLU (const SparseComplexMatrix& a, double piv_thres = -1); |
|
42 |
|
43 SparseComplexLU (const SparseComplexMatrix& a, const ColumnVector& Qinit, |
5282
|
44 double piv_thres = -1, bool FixedQ = false, |
|
45 double droptol = -1., bool milu = false, |
|
46 bool udiag = false); |
5164
|
47 |
|
48 SparseComplexLU (const SparseComplexLU& a) |
|
49 : sparse_base_lu <SparseComplexMatrix, Complex, SparseMatrix, double> (a) { } |
|
50 |
|
51 SparseComplexLU& operator = (const SparseComplexLU& a) |
|
52 { |
|
53 if (this != &a) |
|
54 sparse_base_lu <SparseComplexMatrix, Complex, SparseMatrix, double> |
|
55 :: operator = (a); |
|
56 |
|
57 return *this; |
|
58 } |
|
59 |
|
60 ~SparseComplexLU (void) { } |
|
61 }; |
|
62 |
|
63 #endif |
|
64 |
|
65 /* |
|
66 ;;; Local Variables: *** |
|
67 ;;; mode: C++ *** |
|
68 ;;; End: *** |
|
69 */ |