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 |
5681
|
139 Matrix dsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
140 double& rcond, solve_singularity_handler sing_handler, |
|
141 bool calc_cond = false) const; |
5164
|
142 |
5681
|
143 ComplexMatrix dsolve (SparseType &typ, const ComplexMatrix& b, |
|
144 octave_idx_type& info, double& rcond, |
|
145 solve_singularity_handler sing_handler, |
|
146 bool calc_cond = false) const; |
5164
|
147 |
5681
|
148 SparseMatrix dsolve (SparseType &typ, const SparseMatrix& b, |
|
149 octave_idx_type& info, double& rcond, |
|
150 solve_singularity_handler sing_handler, |
|
151 bool calc_cond = false) const; |
5164
|
152 |
|
153 SparseComplexMatrix dsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
154 octave_idx_type& info, double& rcond, |
5681
|
155 solve_singularity_handler sing_handler, |
|
156 bool calc_cond = false) const; |
5164
|
157 |
|
158 // Upper triangular matrix solvers |
5681
|
159 Matrix utsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
160 double& rcond, solve_singularity_handler sing_handler, |
|
161 bool calc_cond = false) const; |
5164
|
162 |
5681
|
163 ComplexMatrix utsolve (SparseType &typ, const ComplexMatrix& b, |
|
164 octave_idx_type& info, double& rcond, |
|
165 solve_singularity_handler sing_handler, |
|
166 bool calc_cond = false) const; |
5164
|
167 |
5681
|
168 SparseMatrix utsolve (SparseType &typ, const SparseMatrix& b, |
|
169 octave_idx_type& info, double& rcond, |
|
170 solve_singularity_handler sing_handler, |
|
171 bool calc_cond = false) const; |
5164
|
172 |
|
173 SparseComplexMatrix utsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
174 octave_idx_type& info, double& rcond, |
5681
|
175 solve_singularity_handler sing_handler, |
|
176 bool calc_cond = false) const; |
5164
|
177 |
|
178 // Lower triangular matrix solvers |
5681
|
179 Matrix ltsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
180 double& rcond, solve_singularity_handler sing_handler, |
|
181 bool calc_cond = false) const; |
5164
|
182 |
5681
|
183 ComplexMatrix ltsolve (SparseType &typ, const ComplexMatrix& b, |
|
184 octave_idx_type& info, double& rcond, |
|
185 solve_singularity_handler sing_handler, |
|
186 bool calc_cond = false) const; |
5164
|
187 |
5681
|
188 SparseMatrix ltsolve (SparseType &typ, const SparseMatrix& b, |
|
189 octave_idx_type& info, double& rcond, |
|
190 solve_singularity_handler sing_handler, |
|
191 bool calc_cond = false) const; |
5164
|
192 |
|
193 SparseComplexMatrix ltsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
194 octave_idx_type& info, double& rcond, |
5681
|
195 solve_singularity_handler sing_handler, |
|
196 bool calc_cond = false) const; |
5164
|
197 |
|
198 // Tridiagonal matrix solvers |
5681
|
199 Matrix trisolve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
200 double& rcond, solve_singularity_handler sing_handler, |
|
201 bool calc_cond = false) const; |
5164
|
202 |
5681
|
203 ComplexMatrix trisolve (SparseType &typ, const ComplexMatrix& b, |
|
204 octave_idx_type& info, double& rcond, |
|
205 solve_singularity_handler sing_handler, |
|
206 bool calc_cond = false) const; |
5164
|
207 |
5681
|
208 SparseMatrix trisolve (SparseType &typ, const SparseMatrix& b, |
|
209 octave_idx_type& info, double& rcond, |
|
210 solve_singularity_handler sing_handler, |
|
211 bool calc_cond = false) const; |
5164
|
212 |
|
213 SparseComplexMatrix trisolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
214 octave_idx_type& info, double& rcond, |
5681
|
215 solve_singularity_handler sing_handler, |
|
216 bool calc_cond = false) const; |
5164
|
217 |
|
218 // Banded matrix solvers (umfpack/cholesky) |
5681
|
219 Matrix bsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
220 double& rcond, solve_singularity_handler sing_handler, |
|
221 bool calc_cond = false) const; |
5164
|
222 |
5681
|
223 ComplexMatrix bsolve (SparseType &typ, const ComplexMatrix& b, |
|
224 octave_idx_type& info, double& rcond, |
|
225 solve_singularity_handler sing_handler, |
|
226 bool calc_cond = false) const; |
5164
|
227 |
5681
|
228 SparseMatrix bsolve (SparseType &typ, const SparseMatrix& b, |
|
229 octave_idx_type& info, double& rcond, |
|
230 solve_singularity_handler sing_handler, |
|
231 bool calc_cond = false) const; |
5164
|
232 |
|
233 SparseComplexMatrix bsolve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
234 octave_idx_type& info, double& rcond, |
5681
|
235 solve_singularity_handler sing_handler, |
|
236 bool calc_cond = false) const; |
5164
|
237 |
|
238 // Full matrix solvers (umfpack/cholesky) |
5681
|
239 void * factorize (octave_idx_type& err, double &rcond, Matrix &Control, |
|
240 Matrix &Info, solve_singularity_handler sing_handler, |
|
241 bool calc_cond = false) const; |
5164
|
242 |
5681
|
243 Matrix fsolve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
244 double& rcond, solve_singularity_handler sing_handler, |
|
245 bool calc_cond = false) const; |
5164
|
246 |
5681
|
247 ComplexMatrix fsolve (SparseType &typ, const ComplexMatrix& b, |
|
248 octave_idx_type& info, double& rcond, |
|
249 solve_singularity_handler sing_handler, |
|
250 bool calc_cond = false) const; |
5164
|
251 |
5681
|
252 SparseMatrix fsolve (SparseType &typ, const SparseMatrix& b, |
|
253 octave_idx_type& info, double& rcond, |
|
254 solve_singularity_handler sing_handler, |
|
255 bool calc_cond = false) const; |
5164
|
256 |
|
257 SparseComplexMatrix fsolve (SparseType &typ, const SparseComplexMatrix& b, |
5681
|
258 octave_idx_type& info, double& rcond, |
|
259 solve_singularity_handler sing_handler, |
|
260 bool calc_cond = false) const; |
5164
|
261 |
|
262 public: |
|
263 // Generic interface to solver with no probing of type |
|
264 Matrix solve (SparseType &typ, const Matrix& b) const; |
5275
|
265 Matrix solve (SparseType &typ, const Matrix& b, octave_idx_type& info) const; |
|
266 Matrix solve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
5164
|
267 double& rcond) const; |
5697
|
268 Matrix solve (SparseType &typ, const Matrix& b, octave_idx_type& info, |
|
269 double& rcond, solve_singularity_handler sing_handler, |
|
270 bool singular_fallback = true) const; |
5164
|
271 |
|
272 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b) const; |
|
273 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b, |
5275
|
274 octave_idx_type& info) const; |
5697
|
275 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b, |
|
276 octave_idx_type& info, double& rcond) const; |
|
277 ComplexMatrix solve (SparseType &typ, const ComplexMatrix& b, |
|
278 octave_idx_type& info, double& rcond, |
|
279 solve_singularity_handler sing_handler, |
|
280 bool singular_fallback = true) const; |
5164
|
281 |
|
282 SparseMatrix solve (SparseType &typ, const SparseMatrix& b) const; |
|
283 SparseMatrix solve (SparseType &typ, const SparseMatrix& b, |
5275
|
284 octave_idx_type& info) const; |
5697
|
285 SparseMatrix solve (SparseType &typ, const SparseMatrix& b, |
|
286 octave_idx_type& info, double& rcond) const; |
|
287 SparseMatrix solve (SparseType &typ, const SparseMatrix& b, |
|
288 octave_idx_type& info, double& rcond, |
|
289 solve_singularity_handler sing_handler, |
|
290 bool singular_fallback = true) const; |
5164
|
291 |
|
292 SparseComplexMatrix solve (SparseType &typ, |
|
293 const SparseComplexMatrix& b) const; |
|
294 SparseComplexMatrix solve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
295 octave_idx_type& info) const; |
5164
|
296 SparseComplexMatrix solve (SparseType &typ, const SparseComplexMatrix& b, |
5275
|
297 octave_idx_type& info, double& rcond) const; |
5697
|
298 SparseComplexMatrix solve (SparseType &typ, const SparseComplexMatrix& b, |
|
299 octave_idx_type& info, double& rcond, |
|
300 solve_singularity_handler sing_handler, |
|
301 bool singular_fallabck = true) const; |
5164
|
302 |
|
303 ColumnVector solve (SparseType &typ, const ColumnVector& b) const; |
|
304 ColumnVector solve (SparseType &typ, const ColumnVector& b, |
5275
|
305 octave_idx_type& info) const; |
5164
|
306 ColumnVector solve (SparseType &typ, const ColumnVector& b, |
5275
|
307 octave_idx_type& info, double& rcond) const; |
5697
|
308 ColumnVector solve (SparseType &typ, const ColumnVector& b, |
|
309 octave_idx_type& info, double& rcond, |
|
310 solve_singularity_handler sing_handler) const; |
5164
|
311 |
|
312 ComplexColumnVector solve (SparseType &typ, |
|
313 const ComplexColumnVector& b) const; |
5697
|
314 ComplexColumnVector solve (SparseType &typ, const ComplexColumnVector& b, |
|
315 octave_idx_type& info) const; |
5164
|
316 ComplexColumnVector solve (SparseType &typ, const ComplexColumnVector& b, |
5275
|
317 octave_idx_type& info, double& rcond) const; |
5164
|
318 ComplexColumnVector solve (SparseType &typ, const ComplexColumnVector& b, |
5275
|
319 octave_idx_type& info, double& rcond, |
5164
|
320 solve_singularity_handler sing_handler) const; |
|
321 |
|
322 // Generic interface to solver with probing of type |
|
323 Matrix solve (const Matrix& b) const; |
5275
|
324 Matrix solve (const Matrix& b, octave_idx_type& info) const; |
|
325 Matrix solve (const Matrix& b, octave_idx_type& info, double& rcond) const; |
|
326 Matrix solve (const Matrix& b, octave_idx_type& info, double& rcond, |
5164
|
327 solve_singularity_handler sing_handler) const; |
|
328 |
|
329 ComplexMatrix solve (const ComplexMatrix& b) const; |
5275
|
330 ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info) const; |
|
331 ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info, |
5164
|
332 double& rcond) const; |
5275
|
333 ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info, double& rcond, |
5164
|
334 solve_singularity_handler sing_handler) const; |
|
335 |
|
336 SparseMatrix solve (const SparseMatrix& b) const; |
5275
|
337 SparseMatrix solve (const SparseMatrix& b, octave_idx_type& info) const; |
|
338 SparseMatrix solve (const SparseMatrix& b, octave_idx_type& info, |
5164
|
339 double& rcond) const; |
5275
|
340 SparseMatrix solve (const SparseMatrix& b, octave_idx_type& info, double& rcond, |
5164
|
341 solve_singularity_handler sing_handler) const; |
|
342 |
|
343 SparseComplexMatrix solve (const SparseComplexMatrix& b) const; |
5275
|
344 SparseComplexMatrix solve (const SparseComplexMatrix& b, octave_idx_type& info) const; |
|
345 SparseComplexMatrix solve (const SparseComplexMatrix& b, octave_idx_type& info, |
5164
|
346 double& rcond) const; |
5275
|
347 SparseComplexMatrix solve (const SparseComplexMatrix& b, octave_idx_type& info, |
5164
|
348 double& rcond, |
|
349 solve_singularity_handler sing_handler) const; |
|
350 |
|
351 ColumnVector solve (const ColumnVector& b) const; |
5275
|
352 ColumnVector solve (const ColumnVector& b, octave_idx_type& info) const; |
|
353 ColumnVector solve (const ColumnVector& b, octave_idx_type& info, double& rcond) const; |
|
354 ColumnVector solve (const ColumnVector& b, octave_idx_type& info, double& rcond, |
5164
|
355 solve_singularity_handler sing_handler) const; |
|
356 |
|
357 ComplexColumnVector solve (const ComplexColumnVector& b) const; |
5275
|
358 ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info) const; |
|
359 ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info, |
5164
|
360 double& rcond) const; |
5275
|
361 ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info, |
5164
|
362 double& rcond, |
|
363 solve_singularity_handler sing_handler) const; |
|
364 |
|
365 // other operations |
|
366 SparseMatrix map (d_d_Mapper f) const; |
|
367 SparseBoolMatrix map (b_d_Mapper f) const; |
|
368 |
|
369 SparseMatrix& apply (d_d_Mapper f); |
|
370 |
|
371 bool any_element_is_negative (bool = false) const; |
|
372 bool any_element_is_inf_or_nan (void) const; |
|
373 bool all_elements_are_int_or_inf_or_nan (void) const; |
|
374 bool all_integers (double& max_val, double& min_val) const; |
|
375 bool too_large_for_float (void) const; |
|
376 |
|
377 SparseBoolMatrix operator ! (void) const; |
|
378 |
|
379 SparseBoolMatrix all (int dim = -1) const; |
|
380 SparseBoolMatrix any (int dim = -1) const; |
|
381 |
|
382 SparseMatrix cumprod (int dim = -1) const; |
|
383 SparseMatrix cumsum (int dim = -1) const; |
|
384 SparseMatrix prod (int dim = -1) const; |
|
385 SparseMatrix sum (int dim = -1) const; |
|
386 SparseMatrix sumsq (int dim = -1) const; |
|
387 SparseMatrix abs (void) const; |
|
388 |
5275
|
389 SparseMatrix diag (octave_idx_type k = 0) const; |
5164
|
390 |
|
391 Matrix matrix_value (void) const; |
|
392 |
|
393 SparseMatrix squeeze (void) const; |
|
394 |
|
395 SparseMatrix index (idx_vector& i, int resize_ok) const; |
|
396 |
|
397 SparseMatrix index (idx_vector& i, idx_vector& j, int resize_ok) const; |
|
398 |
|
399 SparseMatrix index (Array<idx_vector>& ra_idx, int resize_ok) const; |
|
400 |
|
401 SparseMatrix reshape (const dim_vector& new_dims) const; |
|
402 |
5275
|
403 SparseMatrix permute (const Array<octave_idx_type>& vec, bool inv = false) const; |
5164
|
404 |
5275
|
405 SparseMatrix ipermute (const Array<octave_idx_type>& vec) const; |
5164
|
406 |
|
407 // i/o |
|
408 |
|
409 friend std::ostream& operator << (std::ostream& os, const SparseMatrix& a); |
|
410 friend std::istream& operator >> (std::istream& is, SparseMatrix& a); |
|
411 }; |
|
412 |
5509
|
413 // Publish externally used friend functions. |
|
414 |
|
415 extern SparseMatrix real (const SparseComplexMatrix& a); |
|
416 extern SparseMatrix imag (const SparseComplexMatrix& a); |
|
417 |
|
418 // Other operators. |
|
419 |
5164
|
420 extern SparseMatrix operator * (const SparseMatrix& a, |
|
421 const SparseMatrix& b); |
5429
|
422 extern Matrix operator * (const Matrix& a, |
|
423 const SparseMatrix& b); |
|
424 extern Matrix operator * (const SparseMatrix& a, |
|
425 const Matrix& b); |
5164
|
426 |
|
427 extern SparseMatrix min (double d, const SparseMatrix& m); |
|
428 extern SparseMatrix min (const SparseMatrix& m, double d); |
|
429 extern SparseMatrix min (const SparseMatrix& a, const SparseMatrix& b); |
|
430 |
|
431 extern SparseMatrix max (double d, const SparseMatrix& m); |
|
432 extern SparseMatrix max (const SparseMatrix& m, double d); |
|
433 extern SparseMatrix max (const SparseMatrix& a, const SparseMatrix& b); |
|
434 |
|
435 SPARSE_SMS_CMP_OP_DECLS (SparseMatrix, double) |
|
436 SPARSE_SMS_BOOL_OP_DECLS (SparseMatrix, double) |
|
437 |
|
438 SPARSE_SSM_CMP_OP_DECLS (double, SparseMatrix) |
|
439 SPARSE_SSM_BOOL_OP_DECLS (double, SparseMatrix) |
|
440 |
|
441 SPARSE_SMSM_CMP_OP_DECLS (SparseMatrix, SparseMatrix) |
|
442 SPARSE_SMSM_BOOL_OP_DECLS (SparseMatrix, SparseMatrix) |
|
443 |
|
444 SPARSE_FORWARD_DEFS (MSparse, SparseMatrix, Matrix, double) |
|
445 |
5351
|
446 #ifdef IDX_TYPE_LONG |
5322
|
447 #define UMFPACK_DNAME(name) umfpack_dl_ ## name |
|
448 #else |
|
449 #define UMFPACK_DNAME(name) umfpack_di_ ## name |
|
450 #endif |
|
451 |
5164
|
452 #endif |
|
453 |
|
454 /* |
|
455 ;;; Local Variables: *** |
|
456 ;;; mode: C++ *** |
|
457 ;;; End: *** |
|
458 */ |