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_dSparse_h) |
|
24 #define octave_dSparse_h 1 |
|
25 |
|
26 #include "dMatrix.h" |
|
27 #include "dNDArray.h" |
|
28 #include "CMatrix.h" |
|
29 #include "dColVector.h" |
|
30 #include "CColVector.h" |
|
31 |
|
32 #include "dbleDET.h" |
|
33 #include "MSparse.h" |
|
34 #include "MSparse-defs.h" |
|
35 #include "Sparse-op-defs.h" |
|
36 #include "SparseType.h" |
|
37 |
|
38 class SparseComplexMatrix; |
|
39 class SparseBoolMatrix; |
|
40 |
|
41 class |
|
42 SparseMatrix : public MSparse<double> |
|
43 { |
|
44 public: |
|
45 |
|
46 typedef void (*solve_singularity_handler) (double rcond); |
|
47 |
|
48 SparseMatrix (void) : MSparse<double> () { } |
|
49 |
5275
|
50 SparseMatrix (octave_idx_type r, octave_idx_type c) : MSparse<double> (r, c) { } |
5164
|
51 |
5275
|
52 explicit SparseMatrix (octave_idx_type r, octave_idx_type c, double val) |
5164
|
53 : MSparse<double> (r, c, val) { } |
|
54 |
|
55 SparseMatrix (const SparseMatrix& a) : MSparse<double> (a) { } |
|
56 |
|
57 SparseMatrix (const SparseMatrix& a, const dim_vector& dv) |
|
58 : MSparse<double> (a, dv) { } |
|
59 |
|
60 SparseMatrix (const MSparse<double>& a) : MSparse<double> (a) { } |
|
61 |
|
62 explicit SparseMatrix (const SparseBoolMatrix& a); |
|
63 |
|
64 explicit SparseMatrix (const Matrix& a) : MSparse<double> (a) { } |
|
65 |
|
66 explicit SparseMatrix (const NDArray& a) : MSparse<double> (a) { } |
|
67 |
5275
|
68 explicit SparseMatrix (const Array<double> a, const Array<octave_idx_type>& r, |
|
69 const Array<octave_idx_type>& c, octave_idx_type nr = -1, |
|
70 octave_idx_type nc = -1, bool sum_terms = true) |
5164
|
71 : MSparse<double> (a, r, c, nr, nc, sum_terms) { } |
|
72 |
|
73 explicit SparseMatrix (const Array<double> a, const Array<double>& r, |
5275
|
74 const Array<double>& c, octave_idx_type nr = -1, |
|
75 octave_idx_type nc = -1, bool sum_terms = true) |
5164
|
76 : MSparse<double> (a, r, c, nr, nc, sum_terms) { } |
|
77 |
5275
|
78 SparseMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : MSparse<double> (r, c, num_nz) { } |
5164
|
79 |
|
80 SparseMatrix& operator = (const SparseMatrix& a) |
|
81 { |
|
82 MSparse<double>::operator = (a); |
|
83 return *this; |
|
84 } |
|
85 |
|
86 bool operator == (const SparseMatrix& a) const; |
|
87 bool operator != (const SparseMatrix& a) const; |
|
88 |
|
89 bool is_symmetric (void) const; |
|
90 |
|
91 SparseMatrix max (int dim = 0) const; |
5275
|
92 SparseMatrix max (Array2<octave_idx_type>& index, int dim = 0) const; |
5164
|
93 SparseMatrix min (int dim = 0) const; |
5275
|
94 SparseMatrix min (Array2<octave_idx_type>& index, int dim = 0) const; |
5164
|
95 |
|
96 // destructive insert/delete/reorder operations |
|
97 |
5275
|
98 SparseMatrix& insert (const SparseMatrix& a, octave_idx_type r, octave_idx_type c); |
5164
|
99 |
5275
|
100 SparseMatrix concat (const SparseMatrix& rb, const Array<octave_idx_type>& ra_idx); |
5164
|
101 SparseComplexMatrix concat (const SparseComplexMatrix& rb, |
5275
|
102 const Array<octave_idx_type>& ra_idx); |
5164
|
103 |
|
104 friend SparseMatrix real (const SparseComplexMatrix& a); |
|
105 friend SparseMatrix imag (const SparseComplexMatrix& a); |
|
106 |
|
107 friend SparseMatrix atan2 (const double& x, const SparseMatrix& y); |
|
108 friend SparseMatrix atan2 (const SparseMatrix& x, const double& y); |
|
109 friend SparseMatrix atan2 (const SparseMatrix& x, const SparseMatrix& y); |
|
110 |
|
111 SparseMatrix transpose (void) const |
|
112 { |
|
113 return MSparse<double>::transpose (); |
|
114 } |
5506
|
115 SparseMatrix hermitian (void) const { return transpose (); } |
5164
|
116 |
5506
|
117 private: |
|
118 SparseMatrix dinverse (SparseType &mattyp, octave_idx_type& info, |
|
119 double& rcond, const bool force = false, |
|
120 const bool calccond = true) const; |
|
121 |
|
122 SparseMatrix tinverse (SparseType &mattyp, octave_idx_type& info, |
|
123 double& rcond, const bool force = false, |
|
124 const bool calccond = true) const; |
|
125 |
|
126 public: |
5164
|
127 SparseMatrix inverse (void) const; |
5506
|
128 SparseMatrix inverse (SparseType& mattype) const; |
|
129 SparseMatrix inverse (SparseType& mattype, octave_idx_type& info) const; |
|
130 SparseMatrix inverse (SparseType& mattype, octave_idx_type& info, |
|
131 double& rcond, int force = 0, int calc_cond = 1) const; |
5164
|
132 |
|
133 DET determinant (void) const; |
5275
|
134 DET determinant (octave_idx_type& info) const; |
|
135 DET determinant (octave_idx_type& info, double& rcond, int calc_cond = 1) const; |
5164
|
136 |
|
137 private: |
|
138 // Diagonal matrix solvers |
5275
|
139 Matrix dsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
140 solve_singularity_handler sing_handler) const; |
|
141 |
5275
|
142 ComplexMatrix dsolve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
143 double& rcond, solve_singularity_handler sing_handler) const; |
|
144 |
5275
|
145 SparseMatrix dsolve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
146 double& rcond, solve_singularity_handler sing_handler) const; |
|
147 |
|
148 SparseComplexMatrix dsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
149 octave_idx_type& info, double& rcond, |
5164
|
150 solve_singularity_handler sing_handler) const; |
|
151 |
|
152 // Upper triangular matrix solvers |
5275
|
153 Matrix utsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
154 solve_singularity_handler sing_handler) const; |
|
155 |
5275
|
156 ComplexMatrix utsolve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
157 double& rcond, solve_singularity_handler sing_handler) const; |
|
158 |
5275
|
159 SparseMatrix utsolve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
160 double& rcond, solve_singularity_handler sing_handler) const; |
|
161 |
|
162 SparseComplexMatrix utsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
163 octave_idx_type& info, double& rcond, |
5164
|
164 solve_singularity_handler sing_handler) const; |
|
165 |
|
166 // Lower triangular matrix solvers |
5275
|
167 Matrix ltsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
168 solve_singularity_handler sing_handler) const; |
|
169 |
5275
|
170 ComplexMatrix ltsolve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
171 double& rcond, solve_singularity_handler sing_handler) const; |
|
172 |
5275
|
173 SparseMatrix ltsolve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
174 double& rcond, solve_singularity_handler sing_handler) const; |
|
175 |
|
176 SparseComplexMatrix ltsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
177 octave_idx_type& info, double& rcond, |
5164
|
178 solve_singularity_handler sing_handler) const; |
|
179 |
|
180 // Tridiagonal matrix solvers |
5275
|
181 Matrix trisolve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
182 solve_singularity_handler sing_handler) const; |
|
183 |
5275
|
184 ComplexMatrix trisolve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
185 double& rcond, solve_singularity_handler sing_handler) const; |
|
186 |
5275
|
187 SparseMatrix trisolve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
188 double& rcond, solve_singularity_handler sing_handler) const; |
|
189 |
|
190 SparseComplexMatrix trisolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
191 octave_idx_type& info, double& rcond, |
5164
|
192 solve_singularity_handler sing_handler) const; |
|
193 |
|
194 // Banded matrix solvers (umfpack/cholesky) |
5275
|
195 Matrix bsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
196 solve_singularity_handler sing_handler) const; |
|
197 |
5275
|
198 ComplexMatrix bsolve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
199 double& rcond, solve_singularity_handler sing_handler) const; |
|
200 |
5275
|
201 SparseMatrix bsolve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
202 double& rcond, solve_singularity_handler sing_handler) const; |
|
203 |
|
204 SparseComplexMatrix bsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
205 octave_idx_type& info, double& rcond, |
5164
|
206 solve_singularity_handler sing_handler) const; |
|
207 |
|
208 // Full matrix solvers (umfpack/cholesky) |
5275
|
209 void * factorize (octave_idx_type& err, double &rcond, Matrix &Control, Matrix &Info, |
5164
|
210 solve_singularity_handler sing_handler) const; |
|
211 |
5275
|
212 Matrix fsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
213 solve_singularity_handler sing_handler) const; |
|
214 |
5275
|
215 ComplexMatrix fsolve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
216 double& rcond, solve_singularity_handler sing_handler) const; |
|
217 |
5275
|
218 SparseMatrix fsolve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
219 double& rcond, solve_singularity_handler sing_handler) const; |
|
220 |
|
221 SparseComplexMatrix fsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
222 octave_idx_type& info, double& rcond, |
5164
|
223 solve_singularity_handler sing_handler) const; |
|
224 |
|
225 public: |
|
226 // Generic interface to solver with no probing of type |
|
227 Matrix solve (SparseType &typ, const Matrix& b) const; |
5275
|
228 Matrix solve (SparseType &typ, const Matrix& b, octave_idx_type& info) const; |
|
229 Matrix solve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
5164
|
230 double& rcond) const; |
5275
|
231 Matrix solve (SparseType &typ, const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
232 solve_singularity_handler sing_handler) const; |
|
233 |
|
234 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b) const; |
|
235 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b, |
5275
|
236 octave_idx_type& info) const; |
|
237 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
238 double& rcond) const; |
5275
|
239 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b, octave_idx_type& info, |
5164
|
240 double& rcond, solve_singularity_handler sing_handler) const; |
|
241 |
|
242 SparseMatrix solve (SparseType &typ, const SparseMatrix& b) const; |
|
243 SparseMatrix solve (SparseType &typ, const SparseMatrix& b, |
5275
|
244 octave_idx_type& info) const; |
|
245 SparseMatrix solve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
246 double& rcond) const; |
5275
|
247 SparseMatrix solve (SparseType &typ, const SparseMatrix& b, octave_idx_type& info, |
5164
|
248 double& rcond, solve_singularity_handler sing_handler) const; |
|
249 |
|
250 SparseComplexMatrix solve (SparseType &typ, |
|
251 const SparseComplexMatrix& b) const; |
|
252 SparseComplexMatrix solve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
253 octave_idx_type& info) const; |
5164
|
254 SparseComplexMatrix solve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
255 octave_idx_type& info, double& rcond) const; |
|
256 SparseComplexMatrix solve (SparseType &typ, const SparseComplexMatrix& b, octave_idx_type& info, |
5164
|
257 double& rcond, solve_singularity_handler sing_handler) const; |
|
258 |
|
259 ColumnVector solve (SparseType &typ, const ColumnVector& b) const; |
|
260 ColumnVector solve (SparseType &typ, const ColumnVector& b, |
5275
|
261 octave_idx_type& info) const; |
5164
|
262 ColumnVector solve (SparseType &typ, const ColumnVector& b, |
5275
|
263 octave_idx_type& info, double& rcond) const; |
|
264 ColumnVector solve (SparseType &typ, const ColumnVector& b, octave_idx_type& info, |
5164
|
265 double& rcond, solve_singularity_handler sing_handler) const; |
|
266 |
|
267 ComplexColumnVector solve (SparseType &typ, |
|
268 const ComplexColumnVector& b) const; |
|
269 ComplexColumnVector solve (SparseType &typ, |
5275
|
270 const ComplexColumnVector& b, octave_idx_type& info) const; |
5164
|
271 ComplexColumnVector solve (SparseType &typ, const ComplexColumnVector& b, |
5275
|
272 octave_idx_type& info, double& rcond) const; |
5164
|
273 ComplexColumnVector solve (SparseType &typ, const ComplexColumnVector& b, |
5275
|
274 octave_idx_type& info, double& rcond, |
5164
|
275 solve_singularity_handler sing_handler) const; |
|
276 |
|
277 // Generic interface to solver with probing of type |
|
278 Matrix solve (const Matrix& b) const; |
5275
|
279 Matrix solve (const Matrix& b, octave_idx_type& info) const; |
|
280 Matrix solve (const Matrix& b, octave_idx_type& info, double& rcond) const; |
|
281 Matrix solve (const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
282 solve_singularity_handler sing_handler) const; |
|
283 |
|
284 ComplexMatrix solve (const ComplexMatrix& b) const; |
5275
|
285 ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info) const; |
|
286 ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info, |
5164
|
287 double& rcond) const; |
5275
|
288 ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info, double& rcond, |
5164
|
289 solve_singularity_handler sing_handler) const; |
|
290 |
|
291 SparseMatrix solve (const SparseMatrix& b) const; |
5275
|
292 SparseMatrix solve (const SparseMatrix& b, octave_idx_type& info) const; |
|
293 SparseMatrix solve (const SparseMatrix& b, octave_idx_type& info, |
5164
|
294 double& rcond) const; |
5275
|
295 SparseMatrix solve (const SparseMatrix& b, octave_idx_type& info, double& rcond, |
5164
|
296 solve_singularity_handler sing_handler) const; |
|
297 |
|
298 SparseComplexMatrix solve (const SparseComplexMatrix& b) const; |
5275
|
299 SparseComplexMatrix solve (const SparseComplexMatrix& b, octave_idx_type& info) const; |
|
300 SparseComplexMatrix solve (const SparseComplexMatrix& b, octave_idx_type& info, |
5164
|
301 double& rcond) const; |
5275
|
302 SparseComplexMatrix solve (const SparseComplexMatrix& b, octave_idx_type& info, |
5164
|
303 double& rcond, |
|
304 solve_singularity_handler sing_handler) const; |
|
305 |
|
306 ColumnVector solve (const ColumnVector& b) const; |
5275
|
307 ColumnVector solve (const ColumnVector& b, octave_idx_type& info) const; |
|
308 ColumnVector solve (const ColumnVector& b, octave_idx_type& info, double& rcond) const; |
|
309 ColumnVector solve (const ColumnVector& b, octave_idx_type& info, double& rcond, |
5164
|
310 solve_singularity_handler sing_handler) const; |
|
311 |
|
312 ComplexColumnVector solve (const ComplexColumnVector& b) const; |
5275
|
313 ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info) const; |
|
314 ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info, |
5164
|
315 double& rcond) const; |
5275
|
316 ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info, |
5164
|
317 double& rcond, |
|
318 solve_singularity_handler sing_handler) const; |
|
319 |
|
320 // Minimum-norm solvers |
|
321 Matrix lssolve (const Matrix& b) const; |
5275
|
322 Matrix lssolve (const Matrix& b, octave_idx_type& info) const; |
|
323 Matrix lssolve (const Matrix& b, octave_idx_type& info, octave_idx_type& rank) const; |
5164
|
324 |
|
325 ComplexMatrix lssolve (const ComplexMatrix& b) const; |
5275
|
326 ComplexMatrix lssolve (const ComplexMatrix& b, octave_idx_type& info) const; |
|
327 ComplexMatrix lssolve (const ComplexMatrix& b, octave_idx_type& info, |
|
328 octave_idx_type& rank) const; |
5164
|
329 |
|
330 SparseMatrix lssolve (const SparseMatrix& b) const; |
5275
|
331 SparseMatrix lssolve (const SparseMatrix& b, octave_idx_type& info) const; |
|
332 SparseMatrix lssolve (const SparseMatrix& b, octave_idx_type& info, octave_idx_type& rank) const; |
5164
|
333 |
|
334 SparseComplexMatrix lssolve (const SparseComplexMatrix& b) const; |
|
335 SparseComplexMatrix lssolve (const SparseComplexMatrix& b, |
5275
|
336 octave_idx_type& info) const; |
|
337 SparseComplexMatrix lssolve (const SparseComplexMatrix& b, octave_idx_type& info, |
|
338 octave_idx_type& rank) const; |
5164
|
339 |
|
340 ColumnVector lssolve (const ColumnVector& b) const; |
5275
|
341 ColumnVector lssolve (const ColumnVector& b, octave_idx_type& info) const; |
|
342 ColumnVector lssolve (const ColumnVector& b, octave_idx_type& info, octave_idx_type& rank) const; |
5164
|
343 |
|
344 ComplexColumnVector lssolve (const ComplexColumnVector& b) const; |
5275
|
345 ComplexColumnVector lssolve (const ComplexColumnVector& b, octave_idx_type& info) const; |
|
346 ComplexColumnVector lssolve (const ComplexColumnVector& b, octave_idx_type& info, |
|
347 octave_idx_type& rank) const; |
5164
|
348 |
|
349 // other operations |
|
350 SparseMatrix map (d_d_Mapper f) const; |
|
351 SparseBoolMatrix map (b_d_Mapper f) const; |
|
352 |
|
353 SparseMatrix& apply (d_d_Mapper f); |
|
354 |
|
355 bool any_element_is_negative (bool = false) const; |
|
356 bool any_element_is_inf_or_nan (void) const; |
|
357 bool all_elements_are_int_or_inf_or_nan (void) const; |
|
358 bool all_integers (double& max_val, double& min_val) const; |
|
359 bool too_large_for_float (void) const; |
|
360 |
|
361 SparseBoolMatrix operator ! (void) const; |
|
362 |
|
363 SparseBoolMatrix all (int dim = -1) const; |
|
364 SparseBoolMatrix any (int dim = -1) const; |
|
365 |
|
366 SparseMatrix cumprod (int dim = -1) const; |
|
367 SparseMatrix cumsum (int dim = -1) const; |
|
368 SparseMatrix prod (int dim = -1) const; |
|
369 SparseMatrix sum (int dim = -1) const; |
|
370 SparseMatrix sumsq (int dim = -1) const; |
|
371 SparseMatrix abs (void) const; |
|
372 |
5275
|
373 SparseMatrix diag (octave_idx_type k = 0) const; |
5164
|
374 |
|
375 Matrix matrix_value (void) const; |
|
376 |
|
377 SparseMatrix squeeze (void) const; |
|
378 |
|
379 SparseMatrix index (idx_vector& i, int resize_ok) const; |
|
380 |
|
381 SparseMatrix index (idx_vector& i, idx_vector& j, int resize_ok) const; |
|
382 |
|
383 SparseMatrix index (Array<idx_vector>& ra_idx, int resize_ok) const; |
|
384 |
|
385 SparseMatrix reshape (const dim_vector& new_dims) const; |
|
386 |
5275
|
387 SparseMatrix permute (const Array<octave_idx_type>& vec, bool inv = false) const; |
5164
|
388 |
5275
|
389 SparseMatrix ipermute (const Array<octave_idx_type>& vec) const; |
5164
|
390 |
|
391 // i/o |
|
392 |
|
393 friend std::ostream& operator << (std::ostream& os, const SparseMatrix& a); |
|
394 friend std::istream& operator >> (std::istream& is, SparseMatrix& a); |
|
395 }; |
|
396 |
5509
|
397 // Publish externally used friend functions. |
|
398 |
|
399 extern SparseMatrix real (const SparseComplexMatrix& a); |
|
400 extern SparseMatrix imag (const SparseComplexMatrix& a); |
|
401 |
|
402 // Other operators. |
|
403 |
5164
|
404 extern SparseMatrix operator * (const SparseMatrix& a, |
|
405 const SparseMatrix& b); |
5429
|
406 extern Matrix operator * (const Matrix& a, |
|
407 const SparseMatrix& b); |
|
408 extern Matrix operator * (const SparseMatrix& a, |
|
409 const Matrix& b); |
5164
|
410 |
|
411 extern SparseMatrix min (double d, const SparseMatrix& m); |
|
412 extern SparseMatrix min (const SparseMatrix& m, double d); |
|
413 extern SparseMatrix min (const SparseMatrix& a, const SparseMatrix& b); |
|
414 |
|
415 extern SparseMatrix max (double d, const SparseMatrix& m); |
|
416 extern SparseMatrix max (const SparseMatrix& m, double d); |
|
417 extern SparseMatrix max (const SparseMatrix& a, const SparseMatrix& b); |
|
418 |
|
419 SPARSE_SMS_CMP_OP_DECLS (SparseMatrix, double) |
|
420 SPARSE_SMS_BOOL_OP_DECLS (SparseMatrix, double) |
|
421 |
|
422 SPARSE_SSM_CMP_OP_DECLS (double, SparseMatrix) |
|
423 SPARSE_SSM_BOOL_OP_DECLS (double, SparseMatrix) |
|
424 |
|
425 SPARSE_SMSM_CMP_OP_DECLS (SparseMatrix, SparseMatrix) |
|
426 SPARSE_SMSM_BOOL_OP_DECLS (SparseMatrix, SparseMatrix) |
|
427 |
|
428 SPARSE_FORWARD_DEFS (MSparse, SparseMatrix, Matrix, double) |
|
429 |
5351
|
430 #ifdef IDX_TYPE_LONG |
5322
|
431 #define UMFPACK_DNAME(name) umfpack_dl_ ## name |
|
432 #else |
|
433 #define UMFPACK_DNAME(name) umfpack_di_ ## name |
|
434 #endif |
|
435 |
5164
|
436 #endif |
|
437 |
|
438 /* |
|
439 ;;; Local Variables: *** |
|
440 ;;; mode: C++ *** |
|
441 ;;; End: *** |
|
442 */ |