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