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